ImageTransform
How to resize or convert an image. Every field is optional; omitted fields keep the original.
Champs d’entrée
dprIntDevice pixel ratio from 1 to 3; multiplies
widthandheight.fitImageFitHow to fit the image into
widthandheight.formatImageFormatOutput format. Omit to keep the original format.
gravityImageGravityWhich part of the image to keep when cropping.
heightIntTarget height in pixels. Values above 4096 are capped.
qualityIntCompression quality from 1 to 100, for lossy formats.
sharpenIntSharpening strength from 0 (none) to 10.
widthIntTarget width in pixels. Values above 4096 are capped.