GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - drobin04/Batch-JPEG-to-AVIF-Converter: Provides a context menu item to run a python script against a directory to batch-convert all JPEG's in the directory into AVIF files.

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
archive
archive
 
 
dist
dist
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
GUI_Converting_JPEG_To_AVIF.py
GUI_Converting_JPEG_To_AVIF.py
 
 
GUI_Converting_JPEG_To_AVIF.spec
GUI_Converting_JPEG_To_AVIF.spec
 
 
LICENSE
LICENSE
 
 
Readme.md
Readme.md
 
 
build_executable_script.txt
build_executable_script.txt
 
 
context_menu_convertjpg_to_avif.py
context_menu_convertjpg_to_avif.py
 
 
install context menu item.bat
install context menu item.bat
 
 
screenshot.png
screenshot.png
 
 
uninstall context menu item.bat
uninstall context menu item.bat
 
 

Repository files navigation

Batch JPEG To Avif Converter

This project allows you to pick a directory and recursively scan for JPEG files that will be automatically converted to the newer, highly compressed AVIF format, often shrinking 50-80% of the file size, in a large batch operation, and then remove the original JPEG files afterwards.

The project provides a GUI interface that allows you to specify the folder as well as some options, such as whether or not the original files should be deleted, as well as a 'test' to only scan the directory and show the files that would have been found.

I originally developed this app as an easy way to shrink a very large archive of photos I'd collected over the last 10 years, and regularly use it when adding new photos from my phones/cameras to my collection, to keep the file sizes manageable and easy to back up with separate copies.

Image

Downloads and Binaries

Windows

There's an .exe file under the /dist/Windows folder, this is a portable .exe file that does not require any separate setup or installation; all dependencies are included.

Linux

There's an executable file under the /dist/Linux folder, this can be run on a linux machine and also should not require any dependencies to be installed (Python and associated libraries will be bundled with the executable).

Python Script

If you have trouble with either of the above, you can reference the python script in the main directory here,, which, as long as you have the following dependencies installed alongside Python, should run on any system:

  • pillow
  • pillow-avif-plugin

Context-Menu-Item Setup

Here are steps to register a context menu item version of this script, which allows you to just select any folder in the Windows file explorer and click to convert JPEGs in that folder to AVIF's. This is the most convenient option for frequent use.

  • Modify the 'install context menu item.bat' file, and replace any user / python installation directories mentioned in the file with your own.

  • Right click the 'install context menu item.bat' file and select 'Run as Administrator'. This will add the right-click-menu / context menu item for this script.

  • Install Python if you don't already have it installed.

  • Install the 'pillow' and ' pillow-avif-plugin ' packages

  • ( i.e ' pip install pillow-avif-plugin ' in a python manager window such as python's native pip, or Anaconda3).

That's it! Run the script!

Important Notes

  • The context menu item WILL reference the location of the python script in this folder (And as such it references the current directory that the .bat file runs from ). This means that later deleting or moving the python file will break the context menu item.

About

Provides a context menu item to run a python script against a directory to batch-convert all JPEG's in the directory into AVIF files.

Resources

Readme
AGPL-3.0 license
Activity

Stars

7 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.