Output Format
outputFormat - f - f_<output format>
Last updated
outputFormat - f - f_<output format>
Last updated
output format
string
Default Value: webp
Value can be;
webp, png, jpg, jpeg, avif, gif
Eg. f_webp, f_png, ...
Sets the output format of the image.
You may lose transparency when getting certain types of image formats. Transparent pixels become black when transparency is lost.
Smart jpg/png transformation. Detects transparency in the image. If transparency is found in the image, the output format will be set to png
. Otherwise, the output format will be set to jpg
.
(smart jpg-png conversation)
Use & functions before changing the format to adjust the background color. Also consider that you may not need to change the format to jpg, since the alpha layer is gone by applying Flatten function.