Documentation ¶
Overview ¶
Package orient provides the Orient function that applies an Exif orientation to an image.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTranspose ¶
IsTranspose reports if the Exif orientation o requires a transpose operation that swaps the x and y dimensions of the image.
In other words, it returns true iff o represents either rotation by ±90° or a transpose/transverse operation.
func Orient ¶
Orient changes the orientation of im based on the Exif orientation value.
It performes the following operation based on o:
2: flip horizontal 3: rotate 180° 4: flip vertical 5: transpose 6: rotate 90° 7: transverse (transpose and rotate 180°) 8: rotate 270°
It will return either a new image for the values of o above, or im istelf otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.