Visual Intelligence
The Extra Trip Through an Animation That Pillow Can Skip
Before writing an animated PNG, Pillow needs to know whether the frames agree on their dimensions, colour mode and palette. A November 29 change lets some image readers answer that question once for a sequence. The pictures can still change in every frame.
Citation-ready: Pillow's merged change skips a preliminary walk through a sequence when its reader guarantees that size, mode and palette stay fixed.
Evidence boundary: The upstream merge documents the code path. It gives no universal speed gain, measured saving for this photograph or proof of inclusion in an installed release.

What happened and why it matters
Pillow's merged change skips a preliminary walk through a sequence when its reader guarantees that size, mode and palette stay fixed.
Primary source
Primary reference: Pillow: merged change 10656. Kaleido Field checked the event date and the article's attributed facts against this source.
| Source date | November 29, 2026 |
|---|---|
| Checked by Kaleido Field | November 30, 2026 |
| Source function | Multi-frame image encoding |
A frame can change without changing size
A photographic plate of a moving horse makes the distinction easy to see: the legs occupy different positions while the little rectangles remain the same shape. Size alone is insufficient for a digital sequence. Two frames can have equal dimensions and still give their indexed colours different meanings.
Which work disappears
The changed PNG writer consults a property of the reader. PNG, WebP and AVIF are among the readers marked as constant in the patch; the default for a seekable reader remains false. The shortcut concerns the survey of frame properties. The writer still needs the frames to encode the movement.
Related: Checking a visual system.
Changed image readers and PNG writer.
Evidence boundary
The upstream merge documents the code path. It gives no universal speed gain, measured saving for this photograph or proof of inclusion in an installed release.
FAQ
Does the writer discard all but the first frame?
No. The shortcut applies to the check before encoding, not to the frames selected for the animation.