Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Use libImaging from other languages? #126

Closed
vedantroy opened this issue Jan 15, 2023 · 3 comments
Closed

[Question] Use libImaging from other languages? #126

vedantroy opened this issue Jan 15, 2023 · 3 comments

Comments

@vedantroy
Copy link

I'm wondering if it is possible to use the underlying libImaging library from other languages. For example, the Rust ecosystem doesn't really have a simple image augmentation library, and pillow-simd could be a good fit.

From a cursory glance, it seems like libImaging does not have any dependency on the Python header file, so it should be possible to call this from Rust.

@hugovk
Copy link

hugovk commented Jan 16, 2023

I can't speak for the Pillow-SIMD fork, but for upstream Pillow, only the Python API is supported. The C API is private and internal, and we can and do make "breaking" changes with no warning; the C code shouldn't be called directly, only via Python.

See for example python-pillow#4532.

@vedantroy
Copy link
Author

I can't speak for the Pillow-SIMD fork, but for upstream Pillow, only the Python API is supported. The C API is private and internal, and we can and do make "breaking" changes with no warning; the C code shouldn't be called directly, only via Python.

See for example python-pillow#4532.

Thanks for the response. I'm not too worried about official support, I'm more just interested in making sure it is technically feasible to do so without rewriting large amounts of C code. From the look of it, extracting libImaging looks possible.

@homm
Copy link
Collaborator

homm commented Jan 25, 2023

Duplicate of #32

@homm homm marked this as a duplicate of #32 Jan 25, 2023
@homm homm closed this as completed Jan 25, 2023
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

No branches or pull requests

3 participants