Urgent.News

What's breaking now, across hundreds of outlets.

Tech

GIF vs WebP vs MP4 in WebAssembly: Real Benchmarks & Building a Browser-Local GIF Suite

If you write technical documentation, ship product changelogs, or share UI demos on GitHub, Discord, Slack, or Shopify, you have probably run into the same annoying wall: hard upload ceilings (128 KB for Slack emoji, 256 KB for Discord stickers, 1 MB–10 MB for docs, PRs, and storefronts). Most online GIF compressors force a double compromise: You have to upload unreleased UI recordings or…

If you develop technical documentation or share UI demos online, you may have encountered limitations on file sizes. Online GIF compressors often require uploading to external servers, which can be inconvenient and expose your data. To address this issue, I created CompressGIF—a free, browser-local GIF compressor and 12-tool GIF suite that runs Gifsicle 1.96 and FFmpeg 0.12.10 using WebAssembly, ensuring no files leave your machine.

During development, I benchmarked GIF, WebP, and MP4 formats using the same WASM engines in the browser. The results revealed several interesting points. For tiny flat UI loops with few colors, MP4 can be larger than GIF and WebP due to container and codec overhead. Smooth gradients can significantly increase GIF file sizes, while MP4 reduces them.

When MP4 supports autoplay loop, it generally performs better. However, lossy GIF compression has a limit; cropping or trimming the file can help reach smaller sizes. CompressGIF provides a client-side WebAssembly pipeline for local processing and an optional cloud REST API for automation. The suite includes tools for resizing, cropping, trimming, speeding, rotating, and reversing frames, as well as converting between formats.

While browser memory limits may impact processing large videos, the tools work well for small clips and UI captures. Give CompressGIF a try if you frequently optimize GIFs for various platforms, and let me know what formats or workflow challenges you face most often.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Hunting Idunno.AntiCsrf (CVE-2026-131914) in Legacy ASP.NET Web Forms Apps

Mandiant has warned that CVE-2026-131914, an insecure deserialization bug in Idunno.AntiCsrf 0.9.1.0 (a.k.a. 0.9.1 Beta), is being exploited in the wild. Reports put it at CVSS 9.3.

  • Critical vulnerability CVE-2026-131914 in Idunno.AntiCsrf 0.9.1.0 actively exploited.
  • Legacy ASP.NET Web Forms apps require removal of affected AntiCsrfModule.
  • Replace with .NET anti-forgery mechanism, monitor for future incidents.

More from Wednesday 25 November →