Skip to content

Commit

Permalink
reduce_image_size (#1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
JKL98ISR committed May 31, 2022
1 parent b07b308 commit 1cb5be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepchecks/vision/utils/image_functions.py
Expand Up @@ -189,7 +189,7 @@ def prepare_thumbnail(
image = ensure_image(image, copy=False)

img_bytes = io.BytesIO()
image.save(fp=img_bytes, format='PNG')
image.save(img_bytes, optimize=True, quality=60, format='jpeg')
img_bytes.seek(0)
tag = imagetag(img_bytes.read())
img_bytes.close()
Expand Down

0 comments on commit 1cb5be3

Please sign in to comment.