Skip to content

Commit 5e76783

Browse files
committed
Performance improvement of image upload
1 parent 3a64dcf commit 5e76783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superannotate/db/projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def get_image_array_to_upload(byte_io_orig, image_quality_in_editor):
607607

608608
if image_quality_in_editor == 100 and im_format in [
609609
'JPEG', 'JPG'
610-
] and not ImageChops.difference(im, im_original).getbbox():
610+
] and im.size == im_original.size and not ImageChops.difference(im, im_original).getbbox():
611611
byte_io_lores = io.BytesIO(byte_io_orig.getbuffer())
612612
else:
613613
byte_io_lores = io.BytesIO()

0 commit comments

Comments
 (0)