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
This entry was posted in Misc., Other Software, Snippets and tagged , , , . Bookmark the permalink.

Leave a comment

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