Orientation

The orient parameter controls the cardinal orientation of the image.

Features

API Pattern

orient={value}

Parameter

Parameter Description
orient How the image will be orientated.

Parameter Values

Value Description
r Orient the image right.
l Orient the image left.
h Flip the image horizontally.
v Flip the image vertically.
hv Horizontal and vertical flip.
vh Vertical and horizontal flip.
1 Default.
2 Flip the image horizontally.
3 Horizontal and vertical flip.
4 Flip the image vertically.
5 Horizontal flip then orient the image left.
6 Orient the image right.
7 Horizontal flip then orient the image right.
8 Orient the image left.

Notes

By default, if the source image contains orientation information stored within its EXIF data (Exchangeable Image File Format) the image will automatically correct its orientation.

Examples

Description HTML Demo
Orient the image right <img src="image.jpg?orient=r"/> Example
Flip the image horizontally <img src="image.jpg?orient=2"/> Example
Flip the image horizontally and vertically <img src="image.jpg?orient=3"/> Example