Pridani sentry, fix mazani upravenych fotek

This commit is contained in:
Michal Kváček
2023-10-31 17:30:29 +01:00
parent 3223d2ac00
commit 0de73a5ec2
8 changed files with 51 additions and 8 deletions
+1
View File
@@ -75,6 +75,7 @@ class PhotoEditor:
return round(w), round(h)
def rotate(self, degrees: float, crop_after_rotate: bool = False):
degrees *= -1
self.img = self.img.rotate(degrees, resample=Image.Resampling.BICUBIC, expand=True)
if crop_after_rotate: