Game asset processing3 min read

APNG poster differs from frame one? Check the chunk order

Use a poster and two animation frames to check whether an APNG stores its static fallback separately from the opening frame.

APNG poster differs from frame one? Check the chunk order
A closed chest in a still image beside an animation strip of the open chest
Concept illustration

A treasure chest can look shut in an asset library and already be open when the animation starts. Before replacing frames, check whether the APNG deliberately keeps a separate still image for software that only decodes PNG. This test applies to animated PNG files with an acTL chunk.

Build a fixture you can read at a glance

  1. Make three equally sized images. Draw a shut chest for the poster, an open chest for the first frame and a bright glow for the second. Export one APNG with the poster outside the animation and one that includes the static image as frame one. If your exporter offers no such control, classify existing files using the next step.
  2. Open the files in an APNG-aware chunk viewer. Look for acTL ahead of the first IDAT. When the first fcTL precedes IDAT, the static image is also the opening frame. When it follows IDAT, the still lives in IDAT and the first animated frame gets its image data from the following fdAT chunks.
  3. View the same file with a static PNG decoder and an APNG player. In the separate-poster case, expect a shut chest in the former and an open chest at the start in the latter. Give the opening frame a long hold in the test so the glow cannot be mistaken for frame one.

Check deliverables after optimization

Keep the original APNG and use Image & Audio Compressor for companion stills. If any stage rewrites the animation, repeat the chunk and playback checks on that output. A .png extension and a readable thumbnail are compatible with a static-only export.

Ready to try "APNG poster differs from frame one? Check the chunk order"?

Use our online tools to apply this tutorial to your indie game project right away.