Преглед изворни кода

Merge pull request #957 from geographika/rotate-fix

[photos] Expand photo size when rotated
Justin Mayer пре 7 година
родитељ
комит
004796427b
1 измењених фајлова са 1 додато и 1 уклоњено
  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: