X-Git-Url: https://scm.cri.mines-paristech.fr/git/Photo.git/blobdiff_plain/a18ca54d896fa2f98cf2b7fb8955120ff5e0aa37..8bd9c946d25f740df11c44a67621b1220b6f7696:/Photo.py diff --git a/Photo.py b/Photo.py index 2161eaf..68b67f3 100755 --- a/Photo.py +++ b/Photo.py @@ -194,7 +194,7 @@ class Photo(Image, TileSupport, Metadata): def _rotateOrFlip(self, im) : orientation = self.tiffOrientation() - rotation, flip = TIFF_ORIENTATIONS[orientation] + rotation, flip = TIFF_ORIENTATIONS.get(orientation, (0, False)) if rotation : im = im.rotate(-rotation) if flip :