Skip to content

Rename Image.ANTIALIAS into Image.LANCZOS#1028

Merged
wiredfool merged 1 commit intopython-pillow:masterfrom
homm:resize-constants
Dec 4, 2014
Merged

Rename Image.ANTIALIAS into Image.LANCZOS#1028
wiredfool merged 1 commit intopython-pillow:masterfrom
homm:resize-constants

Conversation

@homm
Copy link
Member

@homm homm commented Nov 27, 2014

When Image.ANTIALIAS was initially added, it was the only high-quality filter based on convolutions. Its name was supposed to say that.

Starting from Pillow 2.7 all resize method are based on convolutions. No more difference between them except filters. And filter names are "bilinear", "bicubic", "lanczos". Not "antialias", because all of them are antialias from now.

Of course we should leave ANTIALIAS constant for backward compatibility and make it an alias (sorry for this pun).

wiredfool added a commit that referenced this pull request Dec 4, 2014
Rename Image.ANTIALIAS to Image.LANCZOS
@wiredfool wiredfool merged commit 2d2293b into python-pillow:master Dec 4, 2014
@homm homm deleted the resize-constants branch April 27, 2016 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants