Overview
Sources
Libraries
Images API

Orientation orientation

Changes the orientation of the image using Exif standard values for orientation tag.

Images will be automatically rotated by imglab using Exif orientation tag if available. Only use orientation parameter in the case that you want to explicitly apply an orientation for your images.

Values

  • 1: horizontal (normal).
  • 2: mirror horizontal.
  • 3 or 180: rotate 180º.
  • 4: mirror vertical.
  • 5: mirror horizontal and rotate 270º CW.
  • 6 or 90: rotate 90º CW.
  • 7: mirror horizontal and rotate 90º CW.
  • 8 or 270: rotate 270º CW.

Examples

Specify a orientation of 2 with orientation=2 parameter to mirror the image horizontally:

GET
https://assets.imglab-cdn.net/flowers.jpeg?orientation=2
Tulips field image mirrored horizontally using orientation parameter.
x px

Specify a orientation of 90 with orientation=90 parameter to rotate the image 90º CW:

GET
https://assets.imglab-cdn.net/flowers.jpeg?orientation=90
Tulips field image rotated 90º clockwise using orientation parameter.
x px