[photos] Expand photo size when rotated
@@ -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: