Skip to content

Support all PIL resampling filters for resize operation #180

Open
@rstml

Description

@rstml

Trying to set resize resampling filter to LANCZOS throws an error:

p.resize(probability=1.0, width=img_size, height=img_size, resample_filter="LANCZOS")
...

ValueError: The save_filter argument must be one of ['NEAREST', 'BICUBIC', 'ANTIALIAS', 'BILINEAR'].

Latest PIL supports much more than just those listed above. Would be great to support all of those:
https://pillow.readthedocs.io/en/stable/handbook/concepts.html?highlight=lanczos#filters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions