ImageTransformInput input object

The available options for transforming an image.

All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored.

Input fields

  • crop (CropRegion)

    Crop the image according to the specified region.

  • maxHeight (Int)

    Image height in pixels between 1 and 5760.

  • maxWidth (Int)

    Image width in pixels between 1 and 5760.

  • preferredContentType (ImageContentType)

    Convert the source image into the preferred content type. Supported conversions: .svg to .png, any file type to .jpg, and any file type to .webp.

  • scale (Int)

    Image size multiplier for high-resolution retina displays. Must be within 1..3.

The available options for transforming an image.

All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored.

Input fields

  • crop (CropRegion)

    Crop the image according to the specified region.

  • maxHeight (Int)

    Image height in pixels between 1 and 5760.

  • maxWidth (Int)

    Image width in pixels between 1 and 5760.

  • preferredContentType (ImageContentType)

    Convert the source image into the preferred content type. Supported conversions: .svg to .png, any file type to .jpg, and any file type to .webp.

  • scale (Int)

    Image size multiplier for high-resolution retina displays. Must be within 1..3.