PHP Classes

Animated PNG Creator: Create PNG format animations from a list of images

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 1,850 All time: 2,130 This week: 455Up
Version License PHP version Categories
apng-creator 1.6.2GNU Lesser Genera...5.0PHP 5, Graphics, Video


This class can be used to create PNG format animations from a list of images.

It can add to the animation any number of images previously loaded or created by the PHP GD extension functions.

The alignment of each image and the delay between animation images is configurable.

The class can generate an animation file in PNG format that is compatible with the regular PNG image format.

Browsers and programs that do not support the PNG animation image format can still show it as if it consists of a single image.

Innovation Award
PHP Programming Innovation award nominee
October 2009
Number 5
GIF is a popular format for displaying animations in Web pages. However GIF is limited to 8 bit color images.

PNG is an image format that supports 24 bit images. A backwards compatible extension of PNG format allows it to be used to display animations with 24 bit color images.

This class allows generating animations in PNG format using pure PHP code.

Manuel Lemos
Picture of Dzsoni Voker
Name: Dzsoni Voker <contact>
Classes: 2 packages by
Country: Slovak Republic Slovak Republic
Age: ???
All time rank: 13345 in Slovak Republic Slovak Republic
Week rank: 259 Up2 in Slovak Republic Slovak Republic Up
Innovation award
Innovation award
Nominee: 2x

  • examples/images/blur_animation.png
  Files folder image Files  
File Role Description
Files folder imagedocumentation (11 files)
Files folder imageexamples (2 files, 1 directory)
Accessible without login Plain text file APNG_Creator.php Class Animated PNG Creator class

  Files folder image Files  /  documentation  
File Role Description
  HTML file documentation.html Doc. Documentation
  HTML file APNG_Specification.html Doc. The specification.
  HTML file why_use_apng.html Doc. Reasons to use animated PNG instead of GIF animation.
  Image file APNG_BLEND_OP_OVER.png Output Sample animation
  Image file APNG_BLEND_OP_SOURCE.png Output Sample animation
  Image file buffer_frame.png Photo Illustration
  Image file positioning.png Photo Illustration
  Image file chompy.gif Icon Simple icon.
  Image file chompy2.png Icon Simple icon.
  Image file OK.png Icon Simple image
  Image file WRONG.png Icon Simple icon.

  Files folder image Files  /  examples  
File Role Description
Files folder imageimages (1 file)
  HTML file e01_browser_test.html Example Example 01.
  Plain text file examples.css Data CSS file

  Files folder image Files  /  examples  /  images  
File Role Description
  Image file browser_test.png Output Example.

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,130
This week:455Up
User Ratings User Comments (1)
 All time