Crates.io | tinypng |
lib.rs | tinypng |
version | 0.3.1 |
source | src |
created_at | 2022-03-06 07:34:05.896403 |
updated_at | 2022-12-07 09:42:05.295582 |
description | Command line tool for compressing images using the TinyPNG API |
homepage | https://github.com/wyhaya/tinypng |
repository | https://github.com/wyhaya/tinypng.git |
max_upload_size | |
id | 544421 |
size | 41,789 |
Command line tool for compressing images using the TinyPNG API
Download the binary from the release page
Or use cargo
to install
cargo install tinypng
Register a KEY using your email at link
Set TinyPNG API KEY
tinypng -k <KEY>
# Set API KEY successfully
# Your key is stored in ~/.config/tinypng/config.toml
tinypng ./test.png
# test.png: Origin: 1004.7 KB Compressed: 245.4 KB(75.6%)
# Glob
tinypng ./images/*.png
# images/test.png: Origin: 1.4 MB Compressed: 174.5 KB(87.8%)