Change image format
PixelBin serves the same image format as the source image after performing operations. If you want to change the output image format, you can use this parameter. Changing the format will almost always change the output image's size.
Params
Format (f)
The output format for the image. f
is an alias for this parameter.
Valid values are jpeg
, png
, and webp
. jpeg
is the default.
- Original format=jpeg (51.2 KB)
- format=webp (35.2 KB)
- format=png (189 KB)
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/basic_car.jpeg" />
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/t.toFormat(f:webp)/images/transformation/basic_car.jpeg" />
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/t.toFormat(f:png)/images/transformation/basic_car.jpeg" />