/image2avif

Convert images(.jpg, .png, .jpeg) to AVIF format.

GNU General Public License v3.0GPL-3.0

image2avif

Convert images(.jpg, .png, .jpeg) to AVIF format.

GitHub repo size GitHub contributors GitHub Workflow Status (with event) GitHub License

English   |   简体中文

✨ Features

  • 🚪 Easy to get start. Just upload your images and wait for results!
  • 🚀 AVIF format is the next-generation for image. It could reduce file sizes by 20-90%.
  • ☁️ Use Github Action to process images so that the client doesn't have to bear the heavy conversion.

🔧 Usage

Just upload pictures(.jpg, .png, .jpeg) to the root of main branch. Action would automatically convert them to AVIF format and put them under output folder in main branch and the root of output branch

🛡 jsDelivr URL

You could use jsDelivr as CDN for converted images and the URLs would be like this

https://gcore.jsdelivr.net/gh/[username]/[repo]@[branch]/[path]
https://testingcf.jsdelivr.net/gh/[username]/[repo]@[branch]/[path]

For example, if you would like to use new-folder-1.avif in stack-all/image2avif repository, you could use

https://testingcf.jsdelivr.net/gh/stack-all/image2avif@main/output/new-folder-1.avif

as Cloudflare CDN URL or

https://gcore.jsdelivr.net/gh/stack-all/image2avif@main/output/new-folder-1.avif

as Gcore CDN URL.

🙏 Credit

  • ImageMagick, a powerful and open-source image processing tool.
  • VSCodium, a community-driven and freely-licensed binary distribution of VS Code.
  • jsDelivr, A free CDN for open source projects.
  • Github Action, which provide the computing source and CI/CD platform for this project.