Skip to content

Where is source code for LANCZOS etc located? #6257

Description

@klappec-bsci

I found Image.resize() starting on line 1922 of https://github.com/python-pillow/Pillow/blob/bcded33ceead2ae69dad602ce95d8f892ffb46df/src/PIL/Image.py

but .resize() doesn't contain the 'logic' that actually does the calculations for each pixel. I can't find anything resize() calls that actually does contain that logic for executing the math behind the resizing. Is it in some file I missed?

I need to reimplement PIL's exact lanczos algorithm in tensorflow for reasons. (The opencv2 and tf native lanczos algorithms are slightly different)

Any insight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions