We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split from: #52 (comment)
This API would add support for rotations (in 90 degree increments), flipping and transposition of images.
The Orientation class.
Orientation
This class represents a particular orientation. Orientations can be added or subtracted.
They can be constructed using one of the following methods:
Orientation.default() Orientation.rotate(angle) # angle must be in increments of 90 Orientation.flip_horizontal() Orientation.flip_vertical()
The .get_exif_orientation() operation
.get_exif_orientation()
Orientation can also be taken from the image's EXIF data using a new get_exif_orientation operation.
get_exif_orientation
The .orient() operation
.orient()
This takes an orientation object and applies it to the image.
transformed_image = image.orient(image.get_exif_orientation() + Orientation.flip_vertical() + Orientation.rotate(90))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Split from: #52 (comment)
This API would add support for rotations (in 90 degree increments), flipping and transposition of images.
The
Orientation
class.This class represents a particular orientation. Orientations can be added or subtracted.
They can be constructed using one of the following methods:
The
.get_exif_orientation()
operationOrientation can also be taken from the image's EXIF data using a new
get_exif_orientation
operation.The
.orient()
operationThis takes an orientation object and applies it to the image.
The text was updated successfully, but these errors were encountered: