Skip to content

Commit

Permalink
Fixes use of deprecated value
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Enxing committed Aug 8, 2023
1 parent c4451fa commit cac62dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/main/_import_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _import_image(name, url, thumbnail_url, media_id, reference_only):
temp_thumb = tempfile.NamedTemporaryFile(delete=False)
thumb_size = (256, 256)
image = image.convert("RGB") # Remove alpha channel for jpeg
image.thumbnail(thumb_size, Image.ANTIALIAS)
image.thumbnail(thumb_size, Image.LANCZOS)
image.save(temp_thumb.name, format="jpeg")
thumb_name = "thumb.jpg"
thumb_format = "jpg"
Expand Down

0 comments on commit cac62dc

Please sign in to comment.