Optimize and compress images using 'Rust' libraries to reduce file sizes while maintaining image quality. Supports PNG palette reduction and dithering via the 'exoquant' crate before lossless PNG optimization via the 'oxipng' crate, and JPEG re-encoding via the 'mozjpeg' crate. The package provides functions to optimize individual image files or entire directories, with configurable compression levels. Use tinyimg() as a convenient entry point for mixed PNG/JPEG workflows.
| Version: | 0.4 |
| Suggests: | testit |
| Published: | 2026-04-14 |
| DOI: | 10.32614/CRAN.package.tinyimg |
| Author: | Yihui Xie tinyimg author details |
| Maintainer: | Yihui Xie <xie at yihui.name> |
| BugReports: | https://github.com/yihui/tinyimg/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/yihui/tinyimg |
| NeedsCompilation: | yes |
| SystemRequirements: | Cargo (Rust's package manager), rustc |
| Materials: | README, NEWS |
| CRAN checks: | tinyimg results |
| Reference manual: | tinyimg.html , tinyimg.pdf |
| Package source: | tinyimg_0.4.tar.gz |
| Windows binaries: | r-devel: tinyimg_0.3.zip, r-release: tinyimg_0.3.zip, r-oldrel: tinyimg_0.3.zip |
| macOS binaries: | r-release (arm64): tinyimg_0.3.tgz, r-oldrel (arm64): tinyimg_0.3.tgz, r-release (x86_64): tinyimg_0.3.tgz, r-oldrel (x86_64): tinyimg_0.3.tgz |
| Old sources: | tinyimg archive |
Please use the canonical form https://CRAN.R-project.org/package=tinyimg to link to this page.