fix crops
This commit is contained in:
parent
4002e684d5
commit
e0c2138ba7
|
|
@ -98,7 +98,7 @@ class CropImageSerializer(ImageSerializer):
|
|||
x1, y1 = int(crop.split(' ')[0][:-2]), int(crop.split(' ')[1][:-2])
|
||||
x2, y2 = x1 + width, y1 + height
|
||||
crop_params = {
|
||||
'geometry': f'{self._image.image.width}x{self._image.image.width}',
|
||||
'geometry': f'{round(x2 - x1)}x{round(y2 - y1)}',
|
||||
'quality': 100,
|
||||
'cropbox': f'{x1},{y1},{x2},{y2}'
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user