Command line tool for compressing images using the TinyPNG API
-
No terminal display or no output display on Windows
-
Replacing Printing with Windows Toast Notifications
-
Windows toast notifications support click to open the image
-
Send different emojis according to the compression ratio
🥰: 80% < ratio
🥳: 60% < ratio <= 80%
😋: 40% < ratio <= 60%
😚: 30% < ratio <= 40%
🙂: 20% < ratio <= 30%
😧: 10% < ratio <= 20%
😨: 5% < ratio <= 10%
🤡: ratio <= 1%
-
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
- Compress images
tinypng ./test.png
# compress by TinyPNG
# test.png
# 1004.7 KB => 245.4 KB (75.6%) 🥳
# Glob
tinypng ./images/*.png
# compress by TinyPNG
# test1.png
# 1 MB => 100 KB (90.0%) 🥰
# compress by TinyPNG
# test2.png
# 1004.7 KB => 245.4 KB (75.6%) 🥳
# compress by TinyPNG
# test3.png
# 1.4 MB => 174.5 KB (87.8%) 😋
...