项目
在 GitHub 查看 
leerob/pixo
关于
使用 Rust 编写的高性能图像压缩库。
设计与媒体可以做什么
- Zero runtime dependencies — All encoding algorithms implemented from scratch
- Entirely in Rust — No C or C++ codecs required
- PNG and JPEG support — Lossless PNG, lossy PNG (quantization), and lossy JPEG
- Small WASM binary — 159 KB with competitive compression (benchmarks)
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文pixo
A minimal-dependency, high-performance image compression library written in Rust.
Learn more about this project.
Features
- Zero runtime dependencies — All encoding algorithms implemented from scratch
- Entirely in Rust — No C or C++ codecs required
- PNG and JPEG support — Lossless PNG, lossy PNG (quantization), and lossy JPEG
- Small WASM binary — 159 KB with competitive compression (benchmarks)
- Well-tested — 86% code coverage, 965 tests (codebase comparison)
Usage
- Playground (recommended) — Try it in your browser
- WASM — Use in browser or Node.js applications
- CLI — Compress images from the command line
- Rust Crate — Use as a library in your Rust projects
Documentation
Comprehensive guides explaining the algorithms and compression strategies:
- Introduction to Image Compression — Why and how we compress images
- Introduction to Rust — Rust features through the lens of pixo
Core Algorithms
- Huffman Coding — Variable-length codes based on symbol frequency
- LZ77 Compression — Dictionary-based compression with sliding windows
- DEFLATE Algorithm — How LZ77 and Huffman combine
Image Formats
- PNG Encoding — Lossless compression with predictive filtering
- JPEG Encoding — Lossy compression pipeline
- Discrete Cosine Transform — The mathematical heart of JPEG
- Quantization — How JPEG achieves compression
探索相关项目
加载中…