Developer builds in-browser GIF upscaler, fixing halo artifacts and pixel art issues
A developer who runs a video tools site extended their WebGPU video upscaler into a browser-based animated GIF upscaler. They wrote a custom GIF decoder in TypeScript instead of relying on ImageDecoder, which lacks broad browser support and clamps short frame delays. Transparent pixels in GIFs store dark RGB values that caused dark halos when upscaled, so the developer fills those pixels with colors from opaque neighbors before processing. Alpha is handled separately with bilinear sampling and a 50% threshold to keep edges smooth. For pixel art, a nearest-neighbor mode at whole-number scales from 2x to 8x preserves hard edges and exact colors.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in