apng2gif <OUTPUT *.png> [<INPUT *.png>] [options]


Assemble individual \s-1PNG\s0 files into animated \s-1PNG\s0 file.

Some optimizations used in \s-1APNG\s0 Assembler might re-sort the palette, or change the color type from \s-1RGBA\s0 and \s-1RGB\s0 modes to \s-1RGB\s0 and indexed modes. Those optimizations are only performed when they are lossless, but if you want to avoid changing the palette or colortype, see options to turn them off.

The Animated Portable Network Graphics (\s-1APNG\s0) file format is an extension to the Portable Network Graphics (\s-1PNG\s0) specification. It allows for animated \s-1PNG\s0 files that work similarly to animated \s-1GIF\s0 files, while retaining backward compatibility with non-animated \s-1PNG\s0 files and adding support for 8-bit transparency and 24-bit images.



Keep the original palette and do do not optimize for created \s-1APNG\s0.


Keep the original color type.


[Example 1] With following files, to have 3/4 seconds delay between the frames:

frame01.png frame02.png frame03.png

apngasm output.png frame01.png 3 4

You can control individual frame by creating control files, like for \*(C`frame02.txt\*(C':


[Example 2] The same as above, but the with frame00.png, which is \*(L"invisible\*(R". Notice the use of option /f:

frame00.png - invisible frame01.png frame02.png frame03.png

apngasm output.png frame00.png 3 4 /f

That way \s-1APNG\s0 supported browsers and image viewers will show frame01-frame02-frame03 animation, while \s-1IE\s0 and Chrome will display static frame00.png image.

[Example 3] This way you'll get 1/10 sec delay:

apngasm output.png frame01.png






\s-1APNG\s0 homepage

RELATED TO apngasm…

apng2gif\|(1) gifsicle\|(1) gifview\|(1) optipng\|(1) pngcheck\|(1) pngcrush pnginfo\|(1) pngnq\|(1) pngquant\|(1)


Program was written by Max Stepi <[email protected]>

This manual page was written by Jari Aalto <[email protected]>. Released under license \s-1GNU\s0 \s-1GPL\s0 version 2 or (at your option) any later version. For more information about license, visit <>.