TinyCompress
Compress PNG, JPEG, WebP images using TinyPNG/Tinify free web API. No API key required, no login needed. Supports single/batch/directory compression with automatic retry and rate-limit handling.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aga-j/image-tiny-compressTinyCompress — Smart Image Compression
<description> Use when: compressing images, optimizing image file size, reducing image size, tinypng, tinify, compress image, compress png, compress jpeg, compress webp, image optimization, shrink image, 压缩图片, 图片压缩, 图片优化, 图片瘦身, 减小图片体积 NOT for: image resizing/cropping, format conversion, image editing, video compression </description>Overview
TinyCompress uses TinyPNG/Tinify's free web API to perform high-quality lossy compression on PNG, JPEG, and WebP images. No API key, no login, no payment required.
Key Features:
- Free — no API key or registration needed
- Supports PNG, JPEG, WebP formats
- Max 5MB per image, up to 20 images per batch
- Supports global server (tinypng.com) and China server (tinify.cn)
- Auto retry with exponential backoff on failure
- Rate-limit friendly with built-in request delays
- Typical compression: 50%~80% size reduction with near-zero visual quality loss
Prerequisites
- Python 3.6+ must be installed
- requests library:
pip install requests - Network access to
tinypng.comortinify.cn
Usage
1. Single Image Compression
When a user uploads or specifies one image:
python "{SKILL_DIR}/scripts/tiny_compress.py" compress "<image_path>"
Use China server for faster speed in China:
python "{SKILL_DIR}/scripts/tiny_compress.py" compress "<image_path>" --server cn
Output: generates <filename>_compressed.<ext> in the same directory.
2. Batch Compression
When a user provides multiple images:
python "{SKILL_DIR}/scripts/tiny_compress.py" compress "<file1>" "<file2>" ... --output-dir "<output_dir>"
3. Directory Compression
When a user specifies a directory:
python "{SKILL_DIR}/scripts/tiny_compress.py" compress-dir "<dir_path>" --output-dir "<output_dir>"
Add --recursive to include subdirectories.
4. Overwrite Mode
When user explicitly wants to replace original files:
python "{SKILL_DIR}/scripts/tiny_compress.py" compress "<file>" --overwrite
⚠️ Warning: Overwriting is irreversible.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aga-j-image-tiny-compress": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
wechat-article-fetcher
微信公众号文章抓取工具。当用户发送微信文章链接、需要保存公众号文章、 想要离线阅读微信文章、提取微信文章内容、下载微信文章图片时自动触发。 支持 mp.weixin.qq.com 域名的所有文章链接。
TinyCompress
Compress PNG, JPEG, WebP images using TinyPNG/Tinify free web API. No API key required, no login needed. Supports single/batch/directory compression with automatic retry and rate-limit handling.