Skip to content

Support animation for PNG and WEBP thumbnails#123

Open
c960657 wants to merge 2 commits into
kreeti:masterfrom
c960657:animated-png-webp
Open

Support animation for PNG and WEBP thumbnails#123
c960657 wants to merge 2 commits into
kreeti:masterfrom
c960657:animated-png-webp

Conversation

@c960657
Copy link
Copy Markdown

@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.

Comment thread lib/paperclip/thumbnail.rb
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