Skip to content

Commit

Permalink
Changing ANTIALIAS to LANCZOS in thumbnail() Fixes #2065
Browse files Browse the repository at this point in the history
  • Loading branch information
molokov committed Dec 22, 2023
1 parent e7f7491 commit a89ef45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mezzanine/core/templatetags/mezzanine_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def thumbnail(
to_size = (to_width, to_height)
to_pos = (left, top)
try:
image = ImageOps.fit(image, to_size, Image.ANTIALIAS, 0, to_pos)
image = ImageOps.fit(image, to_size, Image.LANCZOS, 0, to_pos)
image = image.save(thumb_path, filetype, quality=quality, **image_info)
# Push a remote copy of the thumbnail if MEDIA_URL is
# absolute.
Expand Down

0 comments on commit a89ef45

Please sign in to comment.