API Reference

This feature is essential for ensuring compatibility across different browsers and devices, as well as optimizing website performance by adjusting the image format to one more suitable for your needs.

Parameter structure

The URL to apply the Convert transformation should be structured as follows:

/convert:[formato]/

/convert:png/ Conversion to PNG

/convert:jpeg/ Conversion to JPEG

/convert:webp/ Conversion to WebP

The available formats are:

  • jpeg
  • png
  • webp
  • gif
  • tiff
  • avif

To convert an image to the WebP format, the URL should be structured as follows:

https://img.voidr.co/my_project/convert:webp/fetch/:url

⚠️ Only the formats listed above are supported.

Usage example:

To convert an image to PNG format, the URL would be:

https://img.voidr.co/my_project/convert:webp/fetch/https://images.unsplash.com/photo-1561336313-0bd5e0b27ec8