Changes the cardinal orientation of the image by overriding any Exif orientation metadata.
By default, imgix automatically uses Exchangeable image file format (Exif) metadata present in the master image to orient your photos correctly. If your image does not contain Exif orientation data, we assume a value of
0 and do not rotate the image.
To override the Exif data, you can set the value either to
8 (following Exif format), or to
270, etc. as degree aliases for the Exif values where
8. See the diagram below for how these values relate to the orientation of the image when it was shot.
If you know that Exif data will not be present in the master, you can instead use the
rot parameter to rotate the image. One important distinction between the two is that
or is intended to correct the cardinal orientation of the image, whereas
rot is intended for straightening the image (i.e. correcting camera tilt on a horizon line). Also,
rot will rotate your image within the existing frame, whereas
or will rotate the frame as well.