The short answer

Your GIF's transparent background turned into a solid black (sometimes white) box because the tool that resized or re-encoded it rebuilt the color palette without paying attention to transparency. GIF doesn't support real transparency the way PNG does — a pixel is either 100% see-through or 100% opaque, nothing in between. Whenever a GIF gets resized, cropped, or otherwise re-encoded, its color palette has to be rebuilt from scratch for the new pixels. Many resizing tools do that rebuild using an RGB-only color format that simply ignores the transparency (alpha) channel. Every pixel that was supposed to stay transparent gets treated as if it were opaque black, and that's the black box you're looking at. It's a palette bug, not something wrong with your original file.

Why GIF transparency is so easy to break

PNG stores a separate alpha value per pixel, so partial transparency and soft edges survive almost anything. GIF has no such channel — instead, one color in the frame's limited palette (256 colors max) is designated "the transparent one," and any pixel using that exact palette index gets skipped when the frame is drawn. That design works fine as long as nothing touches the palette. But resizing blends pixels together (to smooth edges), and cropping can expose new regions that need to become transparent — like the corners left outside a circular crop. Either way, the encoder has to pick a fresh set of colors and decide, again, which one (if any) represents "transparent." If the tool building that palette wasn't built to track alpha through that step, the answer it lands on is: none of them, and everything renders opaque.

Why resizing or cropping specifically causes it

A GIF that's just sitting there, unmodified, keeps its original transparent index and displays fine. The problem shows up specifically at the re-encoding step, because that's the only point where the palette gets rebuilt. Simple conversion tools and quick online resizers often default to whatever color-quantization mode is fastest or highest-fidelity for opaque images — which is exactly the mode that drops alpha. This is why the same GIF can look correct when just opened in a browser, then turn into a black rectangle the moment you run it through a resize, crop, or format-conversion step. It's also why the complaint shows up equally across very different tools and workflows — it's a property of how naive GIF encoding works, not a flaw specific to one app.

How to avoid it when resizing

The fix is to use a resize or crop tool whose encoder is explicitly alpha-aware, so it tracks which pixels need to stay transparent through the palette rebuild rather than flattening them. As one concrete example, PixelTools' own GIF resize and crop pipeline quantizes each frame using an alpha-aware palette format (rgba4444) instead of the encoding library's faster default (rgb565), specifically because that default "ignores alpha entirely, which would flatten every transparent pixel to an opaque nearest-RGB color" — the tool's own code comments spell out the exact bug this article is about. With the alpha-aware format, the encoder can correctly identify which palette color should stay transparent and mark it as the frame's transparent index, so a circular crop's corners or a resized frame's edges stay see-through instead of turning black.

If your GIF is already black, can you fix it?

Generally, no — not from that file alone. Once a naive encoder flattens transparent pixels to opaque black (or white), that information is gone; there's no alpha channel left to recover, because the black pixels are now genuinely, permanently black in the file's data. There's no filter that can reliably tell "this was originally transparent" apart from "this was originally black" after the fact. Your real fix is to go back to the source file that still has real transparency — the original PNG frames, the source video with alpha, or an earlier export of the GIF before it was resized — and re-run the resize or crop using a tool that preserves alpha through the re-encode. If you no longer have that source, you're stuck recreating the transparent regions manually or starting over.

Quick checklist before you resize a transparent GIF

Before you resize, crop, or convert a GIF that relies on transparency: confirm the transparency is still real transparency (open it and check the checkerboard pattern most editors show, not just an assumed background color); keep a backup of the source file with alpha intact, in case a re-encode goes wrong; and after resizing, immediately check the result against a colored background, not a white one, since a black-on-white failure can be easy to miss. If the background turns solid, don't keep tweaking that same output — go back to the original source and try again with a tool that explicitly handles alpha during quantization.