components.photo.reorient
- class Reorient(config={}, **kwds)[source]
Bases:
TransformerRotate and/or reflect an image.
This can be used to convert photographs to the normal viewing orientation, rather than relying on the metadata orientation flag.
The
orientationparameter sets the current orientation of the image. If it’sautothe value is taken from the image metadata.Config
orientationstr
The current orientation. Possible values:
auto,normal,rotate -90,rotate +90,rotate 180,reflect left-right,reflect top-bottom,reflect tr-bl,reflect tl-br.
Comments or questions? Please email jim@jim-easterbrook.me.uk.