The well known PNG format is APNG it has got many features, it supports for animation and in additional to it has got 24 bit images, and eight bit transparency, the ordinary frames with two additional data chunks is contained in an APNG file, for all APNG data there are certain rules, they are in glance the size of the total APNG is the size of the first frame, an aCLT chunk must appear before any IDAT chunks and fCLT chunk must appear before the IDAT chunks. Before the entire image is read APNG is designed to allow incremental display of
APNG comes as a modification of the well-known PNG format, but with additional support for animation. It supports 24-bit images and 8-bit transparency, having a much better quality then the classic GIF format.
An APNG file contains ordinary PNG frames, with two additional data chunks: aDAT (animation data chunks) and fCTL(the frame control chunk). Any PNG decoder should be able to decode the first frame of the APNG file as an ordinary PNG image. Any APNG data file must be subjected to certain rules:
The size of the entire APNG
"APNG is designed to allow incremental display of frames before the entire image has been read. This implies that some errors may not be detected until partway through the animation. It is strongly recommended that when any error is encountered decoders should discard all subsequent frames, stop the animation, and revert to displaying the default image. A decoder which detects an error before the animation has started should display the default image. An error message may be displayed to the user if appropriate.
Structure
An APNG stream is a normal