Consider a tiny health potion, drawn one square at a time. Its outline has a deliberate gap between the cork and a glint of light. Saving that image as a lossless PNG preserves the gap exactly. That matters when one pixel is enough to change the shape of a bottle. W3C’s PNG specification
A palette is a set of instructions
An indexed PNG can store a small table of colours and give each pixel a number pointing into it. Hundreds of pixels can point to the same red. Transparency can be recorded for palette entries too, so the empty space around the bottle can disappear over different backgrounds. Artwork with more colours can use PNG’s truecolour representation.
In June 2025, the W3C published the third edition of the specification, bringing animated PNG into the document. An animation can describe a succession of frames with their own timing and rules for what remains on the canvas between them. That makes a blinking highlight possible without turning the potion into a video. PNG Third Edition, animated image structure
One decision still belongs to the game or web page displaying the art. A sharply defined source pixel can look soft when the renderer enlarges and filters it. When a sprite looks blurry, inspect the exported file at its original size before redrawing the edge.


