Browse Source

Merge pull request #957 from geographika/rotate-fix

[photos] Expand photo size when rotated
Justin Mayer 7 years ago
parent
commit
004796427b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      photos/photos.py

+ 1 - 1
photos/photos.py

@@ -201,7 +201,7 @@ def rotate_image(img, exif_dict):
         elif orientation == 5:
             img = img.rotate(-90).transpose(Image.FLIP_LEFT_RIGHT)
         elif orientation == 6:
-            img = img.rotate(-90)
+            img = img.rotate(-90, expand=True)
         elif orientation == 7:
             img = img.rotate(90).transpose(Image.FLIP_LEFT_RIGHT)
         elif orientation == 8: