components.photo.reorient

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

Bases: 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.

Config

orientation

str

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.