Skip to content

New filters! ⭐⭐⭐#1959

Merged
wiredfool merged 5 commits intopython-pillow:masterfrom
uploadcare:new-filters
Jul 5, 2016
Merged

New filters! ⭐⭐⭐#1959
wiredfool merged 5 commits intopython-pillow:masterfrom
uploadcare:new-filters

Conversation

@homm
Copy link
Copy Markdown
Member

@homm homm commented Jun 16, 2016

This adds two new filters to resize method.

BOX is event faster than LINEAR because it has a smaller window (0.5) and produces very sharp images. Applicable for significant downscaling.

HAMMING costs like LINEAR, also produces very sharp images and applicable for downscaling at any range. Doesn't look good for upscaling, though.

@radarhere radarhere added this to the 3.3.0 milestone Jun 17, 2016
@homm
Copy link
Copy Markdown
Member Author

homm commented Jun 29, 2016

This PR is not critical for me and has relatively large change for review, so it can wait until 3.4. The most valuable part from my point of view is the filters comparison table in documentation. So if we decide to move this PR to 3.4 I can make another PR with the table only.

@wiredfool
Copy link
Copy Markdown
Member

Ok, bumping to 3.4.

@wiredfool wiredfool modified the milestones: 3.4.0, 3.3.0 Jun 30, 2016
Comment thread libImaging/Imaging.h
#define IMAGING_TRANSFORM_BILINEAR 2
#define IMAGING_TRANSFORM_HAMMING 5
#define IMAGING_TRANSFORM_BICUBIC 3
#define IMAGING_TRANSFORM_LANCZOS 1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any logical order here? It doesn't appear to be numeric, alphabetical, or order added.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From less expensive and quality to more. Same as in the comparison table.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wiredfool Are you happy with this explanation?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, though I expect someone is going to helpfully clean up the order in a PR in a year or two.

@wiredfool
Copy link
Copy Markdown
Member

Looks good to me.

@wiredfool wiredfool merged commit e8c123c into python-pillow:master Jul 5, 2016
@wiredfool
Copy link
Copy Markdown
Member

@homm Can you write up basic release notes for this in docs/release/3.4.0.rst?

@homm homm deleted the new-filters branch July 5, 2016 11:26
@homm
Copy link
Copy Markdown
Member Author

homm commented Jul 5, 2016

Yes, sure. But I'd prefere to delay this on the weak before the release, to add all notes at once :)

@hugovk hugovk mentioned this pull request Jul 5, 2016
@wiredfool
Copy link
Copy Markdown
Member

I'd rather have it in there so that we don't miss it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants