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

Support animation for PNG and WEBP thumbnails #123

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

c960657
Copy link

@c960657 c960657 commented Aug 15, 2023

Add support for PNG and WEBP supports animation like GIF, and ImageMagick has support for both formats.

ImageMagick handles WEBP just like GIF. PNG is a different story.

ImageMagick considers animated PNGs a format separate from PNG, and the .png extension is reserved for non-animated images. Web browsers handles both variants when served as image/png. I think Paperclip should use .png for both animated and non-animated images, like for GIF and WEBP. This requires a bit of trickery to force ImageMagick to read and write animated PNGs.

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

Successfully merging this pull request may close these issues.

2 participants