Aller au contenu principal
Objet d’entrée

ImageTransform

How to resize or convert an image. Every field is optional; omitted fields keep the original.

Champs d’entrée

  • dprInt

    Device pixel ratio from 1 to 3; multiplies width and height.

  • How to fit the image into width and height.

  • Output format. Omit to keep the original format.

  • Which part of the image to keep when cropping.

  • heightInt

    Target height in pixels. Values above 4096 are capped.

  • qualityInt

    Compression quality from 1 to 100, for lossy formats.

  • sharpenInt

    Sharpening strength from 0 (none) to 10.

  • widthInt

    Target width in pixels. Values above 4096 are capped.

Utilisé par