Note to self: Resize animated PNG (APNG)

Interestingly, animated PNG (APNG) files seem to be so scarce that neither Gimp nor ImageMagick support this format. In fact, it took me quite a bit of searching until I found a way to scale an animated PNG preserving the animation (Gimp and ImageMagick can at least open respectively resize APNGs but only the first frame.).

For resizing an animated PNG I used the APNG assembler, disassembler, and ImageMagick. The workflow was as follows:

./apngdis animated.png
for i in *png ; do convert $i -resize 32x32\< $i ; done
./apngasm output.png apngframe00.png 1 25 /f
Advertisement
This entry was posted in Misc., Other Software, Snippets and tagged , , , . Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.