Explorar o código

Merge pull request #957 from geographika/rotate-fix

[photos] Expand photo size when rotated
Justin Mayer %!s(int64=7) %!d(string=hai) anos
pai
achega
004796427b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: