You are here

APNG Plug-In

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

APNG plug-in provides Animated PNG (APNG) image file load and save modules for the GIMP.

Download source tar ball and more information at

If you have any suggestions, questions, or if you would like to contribute (by translating the plug-in for other languages, or by providing us with a Windows how-to or Mac OS X binary, for example), please contact daisuken at

Updated 19 May 2009:
APNG plug-in for Windows is available for download. Many thanks to Max Stepin!

Updated 28 Apr 2009:

How to install without replacing the system libpng library

If you have installed *patched* libpng at /usr/local/libpng,

1. You can use pkg-config to search patched libpng.

$ env PKG_CONFIG_PATH=/usr/local/libpng/pkgconfig:$PKG_CONFIG_PATH ./configure

2. Or, you can use --with-libpng-include=DIR and --with-libpng-lib=DIR options.

$ ./configure \
  --with-libpng-include=/usr/local/libpng/include \

After install, maybe you need LD_LIBRARY_PATH to search the runtime library path.

$ env LD_LIBRARY_PATH=/usr/local/libpng/lib gimp

"Automatically Detected" does not work

Because same as PNG is handled by PNG plug-in in the GIMP. Please select file type PNG+APNG image.

GIMP Version: 
Code License: 


There is no "bigger" libpng15-15.dll (311KB) in "" , how can I get it , please?

You are awesome! Thank you so much!

Just the afterthought...
If you encounter a problem such as GIMP all of a sudden won't let you open/export standard PNG files with error message saying it cannot find file-png plugin - don't worry. It actually happened to me 3 or 4 times in 2-year span maybe. All you need to do is to save your work in .xcf and restart GIMP. And if this didn't work you just temporarily place your original file-png back in GIMP 2 plugin folder (this is why you don't delete it). Well, I don't really have any reasonable explanation for such a behavior.

The only (but considerable) shortcoming of APNG plugin is lack of option for fps. I don't know the default rate settings but it seems to be around 50-60 fps. First time you'll probably find your animations faster than expected. But it's all fixable.
PNG animations, good as they are, nevertheless, have some usability limitations:
1. Not every image editing program supports apng. PS requires apngasm plugin. IrfanView opens apng as a multilayer image (no playback). I use XnView, which has preinstalled apng, to playback my animations ( its free lightweight application, so I recommend it).
2. Only Mozilla and Opera support apng. For Google Chrome you're going to need apng extension. No apng support in IE - I know, I know but...I was surprised to learn, but the majority of ppl out there are still using it as their main and quite often only browser!
3. APNG compared to GIF is huge in filesize and just limited number of web sites would allow to upload animations 'heavier' than 1000 KB. There is another reason why many user-generated content websites have zero-tolerance policy for APNGs. Such websites also are able only to decode 1st frame and can't see what content is hidden behind it.

I would also recommend you to consider saving your animations in flash/SWF as an alternative to APNG. The quality is superb, SWF is more universal in terms of cross-browser and cross-platform support. Here is plugin to convert GIMP files to SWFs


The export window provided by APNG plugin 0.1.0 lacks options for animation delay and frame disposal that, in comparison, the GIF plugin provides. You can still set those options, but it's more tedious:

When the GIF plugin exports an image with those options, it renames the layers in the saved file, putting the options in parentheses.  Likewise, you can set those APNG options by manually renaming each one of your layers. To rename, either double-click on the layer's name in the Layers dialog OR right-click on the layer in the Layers dialog and click "Edit Layer Attributes..."

Example animated layer name:

Frame 2 (500ms) (replace)

The delay for that frame can be set as shown above by replacing the "500" with any number in milliseconds. The disposal method can be either of two values: (combine) or (replace).

You can make the animation loop forever by setting "Number of plays" in the APNG export window to "0".


New version for Gimp 2.7 64 bit Windows
329 775 bytes

Place the files file-apng.exe, file-apng.ui , libpng15-15.dll in the plug-ins folder.

Modifications file-apng.c :
MaxSt : ui_file = g_build_filename (gimp_plug_in_directory(), "plug-ins", "file-apng.ui", NULL);
samj : gimp_image_insert_layer (image, layer, 0 , -1);

Wait, where do I even get GIMP 2.7 for Windows?

mind that 2.7 is classified as "beta"

anyway i am using from long without problem (BUT i do save VERY often ) so here the link for the 64 bit version

python support is included there is a normal and a portable version
both are obviously virus free BUT for the portable some antivirus may raise a alarm for "gimprun.exe"
Obviously is a false positive !

a version for 32 bit windows which works very nicely.
You have to have Parthas version of Gimp-2.7.3 for it to work because of the hard coding.
Download it here -

1. Copy the dll file to the Gimp-2.7.3\bin directory (typically c:\Program Files\Gimp-2.7.3\bin)
2. Copy the exe file to the Gimp-2.7.3 plugins directory (typically c:\Program Files\Gimp-2.7.3\lib\gimp\2.0\plug-ins)
3. Copy the ui file to the Gimp 2.7.3 ui directory (typically c:\Program Files\Gimp-2.7.3\share\gimp\2.0\ui\plug-ins).
4. For the time being, rename the png plugin to something else (typically found at c:\Program Files\Gimp-2.7.3\lib\gimp\2.0\plug-ins), for example file-png.old.
5. Restart (or start) Gimp.

Thanks for this awesome compile Partha!


Now works flawlessly.
Thanks samj.

Took me 18 minutes to install it. Didn't know why - I just couldn't. But now it works fine. I also use for apng and gif animations


Subscribe to Comments for "APNG Plug-In"