Slimg
lastmod 2026-02-18created 2026-02-181 edits
An image optimization CLI built with Rust
About
An image optimization CLI written in Rust. It supports conversion between JPEG, WebP, PNG, AVIF, and QOI, as well as resizing and quality optimization. It uses modern codecs such as MozJPEG, OxiPNG, and ravif.
Usage
# 디렉토리 일괄 처리 (병렬)
slimg convert ./photos --format webp --quality 85 --recursive
# 리사이즈 + 변환
slimg resize photo.jpg --width 800 --format avif --quality 70
Features
- Parallel processing on all CPU cores with Rayon
- Safe overwrite via temporary file → atomic rename
- Library (slimg-core) and CLI are separate (reusable)
- Native performance through C codec bindings