Some people take a lot of photo and the size grows up to hundreds or thousands of gigabytes really fast. Because of this, there a lot of image file formats that you can use. All of them are optimal for some conditions.
As the development and optimizaion never stops there are 2 awesome image file formats that aren't that much used. This repository was made with the intention to spread and make them more accessible for the general public.
The 2 file formats mentioned are webp (developed by google) and avif (developed by av1, netflix and microsoft).
Talking about webp, this file format is not that new, it was realeased in 2010, and yet it's not popular. Actually as pointed by this survey even after more than 10 years after the realease webp is only used by less than 2% of the websites...
You can think that there is not enough support for it but that's not the case as you can see in this link.
Now talking about avif, this format has less support than webp and there are huge drawback in its use (both the video and image encoder). Though they are superior to all file formats in compression by quality rate they have a huge computational cost for the process.
Based on this shortcoming one can imagine that avif is much less popular than the less than 2% popular webp... And you are right. The same site did a survey for avif too, the results are less than 0.5% of use as you can see by the charts below.
So their poor polularity is my main motivation on making these, this scripts will be easy to use, I hope you enjoy them.
- Put the images, png or jpg, you want to convert in the input folder
- Run avif.bat or webp.bat
- Done!
📦image-bat
┣ 📂bin
┃ ┣ 📜avifenc.exe
┃ ┣ 📜cwebp.exe
┃ ┗ 📜README.md
┣ 📂input
┃ ┗ 📜README.md
┣ 📂output
┃ ┗ 📜README.md
┣ 📜.gitignore
┣ 📜avif.bat
┣ 📜README.md
┗ 📜webp.bat
Root folder.
Programs folder.
Avif Encoder binary program.
Cwebp Encoder binary program.
Put your images here.
Your compressed images will go here.
Make git ignore some files.
Avif encoding script
Webp encoding script
The programs are provided by this repositiory but you can build them yourself if you want.
You can tune the parameters for you computer if you read both documentations, mine parameters are based on 6/12 cpu.
As mentioned in the last section you can build the binary by yourself but I will update this repository in the future.
So for keep it updated you can build the lastes by yourself or check if this repo was updated.