From 66d79d061c2ef720bd61a4e3502ad4a1b7dcfc2c Mon Sep 17 00:00:00 2001 From: Kuroshini Date: Mon, 20 Jan 2020 17:04:51 +0300 Subject: [PATCH] fix crop --- apps/gallery/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/gallery/serializers.py b/apps/gallery/serializers.py index bd439d37..e16e1428 100644 --- a/apps/gallery/serializers.py +++ b/apps/gallery/serializers.py @@ -100,6 +100,7 @@ class CropImageSerializer(ImageSerializer): crop_params = { 'geometry': f'{width}x{height}', 'quality': quality, + 'upscale': False, 'crop': crop, } cropped_image = self._image.get_cropped_image(**crop_params)