tinyimg: Optimize and Compress Images

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. The package provides functions to optimize individual image files or entire directories, with configurable compression levels.

Version: 0.3
Suggests: testit
Published: 2026-03-06
DOI: 10.32614/CRAN.package.tinyimg
Author: Yihui Xie ORCID iD [aut, cre, cph] (URL: https://yihui.org), Authors of the dependency Rust crates [ctb, cph] (see AUTHORS file)
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

Documentation:

Reference manual: tinyimg.html , tinyimg.pdf

Downloads:

Package source: tinyimg_0.3.tar.gz
Windows binaries: r-devel: tinyimg_0.3.zip, r-release: tinyimg_0.3.zip, r-oldrel: tinyimg_0.2.zip
macOS binaries: r-release (arm64): tinyimg_0.3.tgz, r-oldrel (arm64): tinyimg_0.3.tgz, r-release (x86_64): tinyimg_0.2.tgz, r-oldrel (x86_64): tinyimg_0.2.tgz
Old sources: tinyimg archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=tinyimg to link to this page.