X-Git-Url: https://scm.cri.mines-paristech.fr/git/Photo.git/blobdiff_plain/a18ca54d896fa2f98cf2b7fb8955120ff5e0aa37..36ecefbff8bccac22f635c0a9c508e90ba4137f7:/TileSupport.py?ds=sidebyside diff --git a/TileSupport.py b/TileSupport.py index 905b0f4..1dd9c0f 100644 --- a/TileSupport.py +++ b/TileSupport.py @@ -92,7 +92,7 @@ class TileSupport : f = bf.open('r') orientation = self.tiffOrientation() - rotation, flip = TIFF_ORIENTATIONS[orientation] + rotation, flip = TIFF_ORIENTATIONS.get(orientation, (0, False)) if rotation and flip : tf = TemporaryFile(mode='w+')