Skip to content

Commit a89ef45

Browse files
committed
Changing ANTIALIAS to LANCZOS in thumbnail() Fixes stephenmcd#2065
1 parent e7f7491 commit a89ef45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mezzanine/core/templatetags/mezzanine_tags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def thumbnail(
439439
to_size = (to_width, to_height)
440440
to_pos = (left, top)
441441
try:
442-
image = ImageOps.fit(image, to_size, Image.ANTIALIAS, 0, to_pos)
442+
image = ImageOps.fit(image, to_size, Image.LANCZOS, 0, to_pos)
443443
image = image.save(thumb_path, filetype, quality=quality, **image_info)
444444
# Push a remote copy of the thumbnail if MEDIA_URL is
445445
# absolute.

0 commit comments

Comments
 (0)