I have some WebP images. But I have some platforms where I can only send JPG files for them to upload it in their system. How do I convert my WebP image into a JPG image?
To force convert an image from WebP to JPG you can simply add the f-jpg
parameter to the image URL for force the image to JPG format.
This is a WebP Image URL
https://ik.imagekit.io/ikmedia/docs_images/Community/pexels-photo-30739083.webp
You can force it to JPG like this
https://ik.imagekit.io/ikmedia/docs_images/Community/pexels-photo-30739083.webp?tr=f-jpg
If this parameter is not added, but you turn on automatic format optimization for images in ImageKit, we would automatically convert the WebP image to a suitable format like JPG (if it does not contain transparency), or PNG (if the input image contains transparency). This ensures that your images are always loaded correctly on each device and are viewable by the user.