Bug fixes. Added some functionality to help with private extensions
This commit is contained in:
1 parent
579650eaf8
commit
f73402473b
8 files changed
+99
-20
No files matched your search
@@ -317,6 +317,7 @@ class ImageProcessingDTOMixin:
|
||||
img = img.resize((self.scale_to_width, self.scale_to_height), Image.BICUBIC)
|
||||
# crop to x_crop, y_crop, x_crop + crop_width, y_crop + crop_height
|
||||
if img.width < self.crop_x + self.crop_width or img.height < self.crop_y + self.crop_height:
|
||||
# todo look into this. This still happens sometimes
|
||||
print('size mismatch')
|
||||
img = img.crop((
|
||||
self.crop_x,
|
||||
|
||||
Reference in new issue
Block a user