TinyGIF converts and shrinks GIFs in the browser, splitting a large FFmpeg binary to fit Cloudflare
Danny, the builder of TinyGIF, describes a free GIF tool that processes files entirely on the visitor's device so nothing is uploaded to a server. The core FFmpeg WebAssembly binary is about 30.7 MiB, which exceeds Cloudflare Workers' 25 MiB limit for a single static asset. To work around this, the file is split into smaller parts at build time, downloaded in parallel by the browser, and reassembled before compilation. Existing GIFs are compressed with gifsicle compiled to WebAssembly, while video-to-GIF conversion uses FFmpeg in a Web Worker. The approach trades a one-time converter download and limited memory on phones for privacy and zero per-file server costs.
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