
GIF cannot preserve the continuous transparency of soft shadows, smoke and antialiased cutout edges. GIMP's GIF documentation describes its restricted palette and lack of partial transparency. Choose a deliberate background for the GIF or use an alpha-capable format accepted by the destination instead of repeatedly softening the source edge.
Key Takeaways
- A partly transparent source pixel cannot remain partly transparent in GIF.
- An opaque background can make the edge acceptable for one known placement.
- Animated playback and disposal still need a separate check after the edge is fixed.
Confirm that the loss happens at GIF export
Keep the layered source and compare an alpha-preserving image export with the GIF. Place the candidate over the background where it will actually appear. If the source has smooth partial transparency but the GIF turns that transition into a hard boundary or a halo, inspect the format limitation before repainting.
The GIMP GIF export manual documents a maximum palette of 256 colors and no partial transparency. Those are separate constraints. A gradient can suffer from limited color choices, while a feathered edge can suffer from the transparency restriction even when its color is simple.
If the source never had an alpha channel, that is an earlier problem. The GIMP eraser transparency guide explains why removing pixels can instead reveal a background color. Diagnose source alpha before concluding that GIF alone caused the change.
Choose a delivery compromise deliberately
For a fixed placement, compositing onto the final background before exporting an opaque GIF can avoid asking GIF to preserve intermediate transparency. This ties the result to that background: a soft shadow prepared for a white page may show an unwanted border on a dark page.
For variable backgrounds, consider an alternative supported by the destination. GIMP documents animated WebP export, but confirm the target accepts and plays it before replacing the deliverable. The WebP animation export guide covers the separate setting that distinguishes a still WebP from an animation.
Do not promise that changing formats solves every visual problem. Color reduction, resizing and source artifacts still need inspection. Keep the native master so an export compromise does not become baked into the only available artwork.
Test the edge through the complete loop
Imagine a hypothetical animated smoke accent intended for a website with both light and dark themes. Export a sample in each destination-supported candidate and place it on both real backgrounds. Inspect the smoke boundary, shadow and any fine dark details.
The proposed acceptance condition for a transparent delivery is an acceptable blend on both themes. If GIF is mandatory, agree on an opaque placement or a simplified edge treatment and document that limitation. An edge approved on one background is not evidence that it will work everywhere.
Finally, play the whole animation, including the loop join. Soft-edge loss is different from old frames remaining visible behind a moving object. The GIF disposal guide addresses that accumulation problem. Deliver the accepted file with its intended background and placement notes so the publisher does not move a deliberately matted asset onto an incompatible page.
Related tasks
- Why Does a Transparent GIF Leave Old Shapes Behind as It Moves?
- Why Did My GIMP WebP Export Become a Still Image?
- Why Does the GIMP Eraser Paint Black or White Instead of Transparency?
Sources and scope
- 5.6. Export Image as GIF: GIF export is limited to 256 colors and does not retain partial transparency.; Animation export does not support layer groups and is unavailable for a single-layer image.; Combine leaves preceding frames present; Replace removes them before the next frame.
- 5.12. Export Image as WebP: Lossless disables the separate image-quality and alpha-quality controls.; Sharp YUV is only available when Lossless is off.; Save animation uses each layer as a frame; saving a color profile is an explicit export option.
Official-documentation explanation with a proposed diagnostic example.
Prepared by Imagild Editorial, the company editorial team responsible for these guides. AI assisted research and drafting. This is documentation-based guidance with proposed examples, not a claim of hands-on testing or an independent product review. Report a correction.
Cover: AI-generated conceptual editorial illustration; not a real application screenshot, observed output or before-and-after test.