Home - Moon70/APNG-builder GitHub Wiki

Welcome to the APNG-builder wiki!

APNG-builder is a Java API to create an animated PNG file. It was made to add APNG support to the Ganimed tool .

In the first place, it should meet the needs of that tool only.

Please notes: As long as version 1.0 is not final, i feel free to change the inferface :-)

Features:

  • Creates an APNG from a series of files or BufferedImage objects.
  • Images get cropped, if top/bottom/left/right area is unchanged from the previous image, to lossless reduce filesize.
  • Optional: Replace pixel, that are unchanged from the previous image, with transparent pixel. Depending on the animation, this can drastically reduce filesize.
  • Optional: Reducing bit depth. Depending on the animation, reducing 24bit truecolour to 21bit or 18bit is often hard to recognizable, but reduces filesize. This option is not lossless.
  • Optional: Converting 24bit truecolour to 255 (256) colour palette, using an own colour quantizer (see GPAC).