sapphi-red/node-midec — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2021-06-09
Detect whether an uploaded image is animated so you can show a play button icon.
Validate and categorize animated vs static images on the server before storing them.
Optimize delivery differently for static images versus animated GIFs or WebP files.
Check APNG, animated WebP, or HEIF/AVIF files for animation without external services.
| sapphi-red/node-midec | aegrail/aegrail-engine | aeneasr/form | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Go | Go | Go |
| Last pushed | 2021-06-09 | — | 2019-03-08 |
| Maintenance | Dormant | — | Dormant |
| Setup difficulty | easy | hard | easy |
| Complexity | 2/5 | 5/5 | 2/5 |
| Audience | developer | ops devops | developer |
Figures from each repo's GitHub metadata at analysis time.
README is minimal, check the GitHub repo directly for supported formats and edge cases.
This repository provides a simple tool for detecting whether an image file is animated or static. It works with several modern image formats including animated GIFs, APNG (animated PNG), animated WebP, and animated HEIF/AVIF files. The benefit: instead of trying to parse image files yourself or relying on external services, you get a lightweight library that runs directly in your JavaScript application. The library is built using WebAssembly, which is a compact, fast binary format that browsers and Node.js can execute. The original detection logic was written in Go, then converted to WebAssembly so it can run anywhere JavaScript runs, whether that's in a web browser, a Node.js server, or anywhere else. You feed it a file's raw bytes and ask "is this animated?" and it returns a simple true or false answer. Using it is straightforward: you import the isAnimated function, load a file's contents as binary data, pass it to the function, and get back whether the image is animated. This is useful for web applications that need to handle images differently based on whether they're static or animated, for example, showing a play button only on animated images, or optimizing delivery of static images differently than videos. It's also handy for image upload systems that want to validate or categorize files on the server side before storing them. The project is a JavaScript wrapper around existing Go code, meaning it benefits from the reliability of an already-tested detector while making it accessible to JavaScript developers. The README doesn't include extensive documentation beyond a basic example, so you'd want to check the GitHub repository directly for more details on supported formats or edge cases.
A lightweight WebAssembly library that tells you whether an image file (GIF, APNG, WebP, HEIF/AVIF) is animated or static.
Mainly Go. The stack also includes Go, WebAssembly, JavaScript.
Dormant — no commits in 2+ years (last push 2021-06-09).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.