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

Animated GIF loses transparency and animation #14

Open
CatarinaPBressan opened this issue Jun 4, 2014 · 2 comments
Open

Animated GIF loses transparency and animation #14

CatarinaPBressan opened this issue Jun 4, 2014 · 2 comments

Comments

@CatarinaPBressan
Copy link

When I include my gif using url_for('static', filename='loading.gif'), the animation and the transparency work as expected, but they stop working when I use Flask-Images' url_for('images', filename='loading.gif', height=50 ). Flask-Images does successfully resize the image, though.

Testing with this gif:

http://imgur.com/2D7aWd3.gif

@mikeboers
Copy link
Owner

PIL is notoriously bad at handling animated GIFs.

But it can be done, and (for my own reference) there is some code at http://visvis.googlecode.com/hg/vvmovie/images2gif.py which may help in this regard.

@CatarinaPBressan
Copy link
Author

Nice to know that it's possible, but since I can't see where I hook things up, I think it will be easier if I just manually resize that gif. Thank you!

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

No branches or pull requests

2 participants