TinyCodec
github.com/ozzymitchell/tinycodec- Category
- Developer Tools
- Rank
- No. 3865Tools index
Previous survey · No. 3638 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Data Processing
- Interfaces
- CLI
- GitHub
- 8 stars
- Latest release
- v1.1
- Date
About
TinyCodec is a lossless image codec whose core is 45 lines of C. In the author's benchmark on 3,167 images, it produced smaller files than QOI (about 1,954 MB versus 2,125 MB combined) and encoded and decoded faster. The command-line tool packs and unpacks PNG, BMP, PNM/PAM, QOI and WebP images, and the benchmark was run in memory on a single CPU.
At a glance
TinyCodec is a small C implementation of lossless image compression. It is worth reading if you want to study a compact codec or control both ends of an image pipeline and can compare its output with a format you already use.
Good fit
Developers learning how lossless image encoding works or benchmarking codecs on a known image collection.
Consider something else when
Skip it if recipients need to open the compressed files in their existing image tools.
Start here
Start with the readable C implementation. If you evaluate it later, encode and decode a synthetic image and compare the decoded pixels to the original. Compare size and speed on several kinds of images you actually expect to store.
Cost and requirements
Apache-2.0 source. The command-line adapter uses image libraries to handle standard inputs and converts its own compressed files back to PNG.
Limits to know
The author’s comparison shows smaller files than QOI in the reported corpus. PNG tools made smaller files in the separate 640-image comparison, with slower encoding in the reported runs. Check the tradeoff on your own images.
Sources checked 2026-11-05. Source-based assessment.
Tags
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.