GIF stores an image with a 256-colour palette and compresses it with LZW. It has no quality dial, no real transparency and no interframe prediction — and it is still the default for a looping animation nobody planned for.
Everything GIF cannot do follows from its palette and its frame model.
A GIF image is a grid of indices into a table of at most 256 colours. There is no per-pixel colour; there are only references. A photograph forced into that table dithers into noise, and a smooth gradient bands into visible steps before any compression happens at all.
Compression is LZW over those indices — an entropy coder from an era before image-specific modelling. It is efficient on flat regions of repeated indices, which is exactly what a logo or a flat illustration produces, and nearly useless on photographic content.
GIF has a single fully transparent palette entry. There is no alpha channel, so a soft edge becomes a hard one. Drop a GIF onto a different background colour and the fringe is immediate — the classic halo around exported logos.
None of this is a defect for the format's original purpose. GIF was designed for small, flat, indexed graphics transmitted on slow links, and for that it is close to optimal. The problem is that it is now used for animation, which it was never designed to do well.
An animated GIF is a sequence of complete pictures. Each frame is coded independently, so every frame pays full price even when almost nothing changed.
Same pixels, same loop, a different container. The saving is entirely from not re-sending unchanged frames.
Four levers exist. Only one of them changes the format.
Three niches, all of them about the file being self-contained rather than efficient.
For a looping animation on the web, an autoplaying muted video is smaller, sharper and seekable. The only real cost is that it needs a tiny amount of markup.
Encode once, keep the poster frame as an image, and let the browser handle playback. If the animation must work where video cannot, animated WebP is the next best option — it keeps interframe prediction inside an image file. See what is WebP for what that container supports.
GIF is the only common image format where the file size is dominated by a design decision made before the web existed.
Yes for the palette indices, no for the colour. Converting a photograph to GIF destroys it before compression even begins.
One fully transparent colour, no partial alpha. Soft edges become hard, which is why logos fringe on new backgrounds.
Every frame is a full image. Video codecs predict each frame from previous ones; GIF cannot.
Convert if the destination allows video or WebP. Compress only if GIF is a hard requirement.
Technically — 24-bit colour and full alpha. Support is decent in browsers but worse in chat clients and older tools, which is where GIF usually lives.
Compressy handles JPG, PNG, WebP and AVIF — for GIF the honest answer is a video container, or a smaller palette and fewer frames.