What GIF cannot represent
When an animation comes out looking wrong, it is usually not the making that went wrong — it is the format having nowhere to put what you gave it. GIF has no room for several things a modern image takes for granted.
Alpha is one bit
A GIF pixel is either fully transparent or fully opaque. There is no in between. An anti-aliased edge is made of partly transparent pixels, so moving it into GIF pushes every one of them to an extreme and the edge hardens into a staircase. This tool cuts at an alpha of 128: below it the pixel disappears, at or above it the pixel is solid.
The palette holds 256 colours
One GIF uses at most 256 colours. This tool takes a sample spread evenly across every frame and builds a single palette the whole animation shares. Giving each frame its own palette makes each frame slightly more accurate and makes shared colours drift from frame to frame, which reads as flicker.
Delays are stored in hundredths of a second
Ask for 97 ms and you get 100 ms, because there is nowhere to put the 7. On top of that, browsers rewrite very short delays to a floor of their own. A value near the bottom of the range is a request, not a guarantee.
Frames of different sizes
A GIF has exactly one canvas, so images of different sizes have to be reconciled before anything can be encoded. This tool fits each one into a common output box and fills what is left over. The preview shows how each frame lands before you build.
At a glance
| Property | Value |
|---|---|
| Palette | 256 colours, one shared globally |
| Transparency | One bit, cut at alpha 128 |
| Delay resolution | Hundredths of a second |
| Shortest delay | 20ms |
| Longest delay | 2000ms |
| Most frames | 50 |
| Longest output edge | 1024px |
Back to PrismMesh