class Reorient(config={}, **kwds)[source]

Bases: pyctools.core.base.Transformer

Rotate 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 orientation parameter sets the current orientation of the image. If it’s auto the value is taken from the image metadata.




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