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

_imaging C module ImportError when opening GIF files on Windows or OS X #11

Closed
glutanimate opened this issue May 19, 2016 · 3 comments
Closed
Labels
bug Something isn't working help wanted Extra attention is needed low priority Low priority

Comments

@glutanimate
Copy link
Owner

Cf. https://anki.tenderapp.com/discussions/add-ons/7506-image-occlusion-2-error

Looks like we're missing a number of precompiled binaries that would be required for GIF support on Windows and OS X (and Linux distros that don't ship with PIL preinstalled).

@glutanimate glutanimate added bug Something isn't working help wanted Extra attention is needed low priority Low priority labels May 19, 2016
@tmbb
Copy link
Contributor

tmbb commented Mar 13, 2017

Maybe this library can help: https://github.com/shibukawa/imagesize_py.
It seems to be pure python and contains no binaries.
Unless you're now using PIL for something more than getting the image size.
It only supports PNG, GIF and JPEG, but that's probably enough for most users, and you cna always keep PIL as a fallback.
Disclaimer: I've never tried it

@glutanimate
Copy link
Owner Author

Oh, that looks interesting! Thanks for the heads-up! I'll definitely give it a try when I find the time.

@glutanimate
Copy link
Owner Author

Just pushed a commit to main that implements this library with PIL as a fallback. Thanks again for the suggestion, @tmbb !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed low priority Low priority
Projects
None yet
Development

No branches or pull requests

2 participants