Explorar el Código

Merge pull request #957 from geographika/rotate-fix

[photos] Expand photo size when rotated
Justin Mayer hace 7 años
padre
commit
004796427b
Se han modificado 1 ficheros con 1 adiciones y 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: