Auto-rotate

Updated at:

You can set whether to automatically rotate photos that contain rotation parameters. By default, auto-rotation is enabled. Some photos, such as those taken by mobile phones, may contain rotation parameters stored in their Exchangeable Image File Format (EXIF) data.

Parameters

## Parameters| Name | Description | Value Range || --- | --- | --- || o | Auto-rotation option. `0`: Keep the original orientation. `1`: Auto-rotate. The image is resized first and then rotated. `2`: Auto-rotate. The image is rotated first and then resized. | \[0, 2] |

Name

Description

Value range

o

Auto-rotate options:

  • 0: Keeps the original orientation.

  • 1: Rotates the image based on the rotation parameter. The image is resized first, then rotated.

  • 2: Rotates the image based on the rotation parameter. The image is rotated first, then resized.

[0, 1, 2]

Notes

  • If you set the option to 1, the final image width and height might not match the specified parameters.

  • The width and height of the original image must both be less than 4096 pixels for auto-rotation to be applied.

  • If the source image does not have a rotation parameter, adding the auto-orient parameter does not rotate the image.

Examples