How to turn WebP into PNG?

I have some WebP images in our cloud storage. WebP however is not supported on some of customer’s devices, so we want to convert them to formats like JPG or PNG. In some cases the images have a transparent background so we need to use PNG format. How to turn WebP image format to PNG using ImageKit?

ImageKit offers format transformation, enabling you to specify the output image format and seamlessly convert images into any desired format. Please review the example below:

Webp Image:

https://ik.imagekit.io/ikmedia/docs_images/Community/pexels-photo-30739083.webp

Converted to JPG:

https://ik.imagekit.io/ikmedia/docs_images/Community/pexels-photo-30739083.webp?tr=f-jpg

Web Image with Transparency:

https://ik.imagekit.io/ikmedia/docs_images/Community/blue-bmw.webp

Converted to PNG:
https://ik.imagekit.io/ikmedia/docs_images/Community/blue-bmw.webp?tr=f-png