TinyPNG Plus - VSCode 扩展

🌟 与众不同的图片压缩扩展
市面上的 TinyPNG 扩展都需要 API Key,且无法递归压缩目录。TinyPNG Plus 带来革命性突破:
✨ 两大核心优势
1️⃣ 完全免费模式
- 无需 API Key - 开箱即用,零配置
- 无限制压缩 - 不受每月 500 张限制
- 智能切换 - API 配额用完自动切换免费模式
2️⃣ 强大递归压缩
- 深度遍历 - 自动扫描所有子目录
- 批量处理 - 一键压缩整个项目的图片
- 保持结构 - 完美保留原有目录层级
🚀 功能特性
- 双模式支持:官方 API(稳定高效)+ 免费模式(无需配置)
- 递归目录压缩:市面独有,深度遍历所有子文件夹
- 单文件压缩:精确压缩指定图片(v1.3.1 新增)
- 多 API Key:自动切换,突破单个 Key 限制
- 智能处理:自动跳过已压缩图片
- 灵活输出:支持原地替换或输出到新目录
- 格式支持:JPG、JPEG、PNG、WebP
📖 使用方法
1. 安装扩展
在 VSCode 扩展市场搜索 "TinyPNG Plus" 并安装。
2. 直接使用(免费模式)
无需任何配置,安装后即可使用!
3. 配置 API Key(可选)
如需使用官方 API:
- 访问 TinyPNG Developers 获取免费 API Key
- 打开 VSCode 设置,搜索 "tinypng"
- 添加 API Key(支持多个)
4. 压缩图片
批量压缩(递归目录)
- 右键点击文件夹
- 选择 "TinyPNG 压缩"
- 选择模式:
- 压缩文件夹 (API) - 使用官方 API
- 压缩文件夹 (免费) - 无需 API Key
单文件压缩
- 右键点击图片文件
- 选择 "TinyPNG 压缩"
- 选择压缩模式
⚙️ 配置选项
配置项 |
默认值 |
说明 |
tinypng.apiKeys |
[] |
API Keys 数组(可选) |
tinypng.replaceOriginal |
true |
直接替换原文件 |
tinypng.outputFolder |
"compressed" |
输出文件夹名称 |
tinypng.autoSwitchToCrawler |
true |
自动切换到免费模式 |
📝 更新日志
v1.3.1
- 📄 单文件压缩支持
- 🎯 右键菜单优化
- 🚀 自动版本升级功能
v1.2.0
- 🏷️ 重命名为 TinyPNG Plus
- 🔧 优化用户界面
v1.0.0
📄 许可证
MIT License
🤝 支持
TinyPNG Plus - VSCode Extension

🌟 A Different Image Compression Extension
All TinyPNG extensions on the market require API Keys and cannot recursively compress directories. TinyPNG Plus brings revolutionary breakthroughs:
✨ Two Core Advantages
1️⃣ Completely Free Mode
- No API Key Required - Ready to use, zero configuration
- Unlimited Compression - No 500 images/month limit
- Smart Switching - Auto-switch to free mode when API quota exhausted
2️⃣ Powerful Recursive Compression
- Deep Traversal - Automatically scans all subdirectories
- Batch Processing - Compress all project images with one click
- Preserve Structure - Perfectly maintains directory hierarchy
🚀 Features
- Dual Mode Support: Official API (stable & efficient) + Free Mode (no config needed)
- Recursive Directory Compression: Market exclusive, deep traversal of all subfolders
- Single File Compression: Precise compression of specific images (v1.3.1)
- Multiple API Keys: Auto-switching, break single key limits
- Smart Processing: Auto-skip already compressed images
- Flexible Output: Replace original or output to new directory
- Format Support: JPG, JPEG, PNG, WebP
📖 Usage
1. Install Extension
Search "TinyPNG Plus" in VSCode Extension Marketplace and install.
2. Direct Use (Free Mode)
No configuration needed, use immediately after installation!
For official API usage:
- Visit TinyPNG Developers for free API Key
- Open VSCode settings, search "tinypng"
- Add API Key(s)
4. Compress Images
Batch Compression (Recursive Directory)
- Right-click on folder
- Select "TinyPNG Compression"
- Choose mode:
- Compress Folder (API) - Use official API
- Compress Folder (Free) - No API Key needed
Single File Compression
- Right-click on image file
- Select "TinyPNG Compression"
- Choose compression mode
⚙️ Configuration
Option |
Default |
Description |
tinypng.apiKeys |
[] |
API Keys array (optional) |
tinypng.replaceOriginal |
true |
Replace original files |
tinypng.outputFolder |
"compressed" |
Output folder name |
tinypng.autoSwitchToCrawler |
true |
Auto-switch to free mode |
📝 Changelog
v1.3.1
- 📄 Single file compression support
- 🎯 Context menu optimization
- 🚀 Auto version upgrade
v1.2.0
- 🏷️ Renamed to TinyPNG Plus
- 🔧 UI optimization
v1.0.0
- ✨ Initial release
- 🔑 Dual mode support
- 📁 Recursive directory compression
📄 License
MIT License
🤝 Support
享受愉快的图片压缩体验! Enjoy your image compression experience! 🎉
| |