Convert between JPG, PNG, and WEBP. Transparency is flattened onto white when converting to JPG, since JPG has no transparency support.
curl -sS -X POST https://devops.majbase.com/image-converter/api \
-F "file=@photo.png" \
-F "format=webp" \
-o photo.webp
curl -sS -X POST https://devops.majbase.com/image-converter/api \
-F "file=@photo.jpg" \
-F "format=avif" \
-o photo.avif
The API always accepts format=avif if the server supports it, regardless of what any particular browser can display — the browser check on this page only controls whether the AVIF option is shown in the form above.