TinyPngCompressor is a Jetbrains plugin that helps developers easily compress images (webP/png/jpg/jpeg) directly within the IDE. Powered by TinyPNG, the plugin provides a visual interface for compressing images, previewing before/after comparisons, and managing file compression in batch.
- ✅ Compress images(webP/png/jpg/jpeg) with TinyPNG
- ✅ Support the latest Android Studio (Meerkat | 2024.3 or newer) and Intellij IDEA
- ✅ Before/After image preview with compression ratio
- ✅ Batch compression support via project file tree
- ✅ Displays file size reduction and progress
- ✅ Automatically detect pasted or copied images
- ✅ Smart filtering to skip already compressed images
- ✅ Easy-to-use, intuitive UI inside your IDE
- Right-click on a webP/png/jpeg image file or directory in the project view.
- Select
Compress Imageitem. - The plugin will:
- Scan and list supported image files.
- Show original and compressed previews.
- Compress images via TinyPNG and update size.
- You can cancel, retry, or skip individual files.
Choose one of the following methods to install the plugin:
- Open your JetBrains IDE (IntelliJ IDEA, Android Studio, etc.)
- Go to Settings → Plugins → Marketplace
- Search for TinyPngCompressor
- Click Install, then restart the IDE
- Download
TinyPngCompressor-xxx.zipfrom release page - Go to Settings → Plugins → ⚙️ → Install Plugin from Disk
- Select the
.zipfile above and restart the IDE
- Clone the project and build the plugin using Gradle:
./gradlew buildPlugin
- Find the output
.zipfile inbuild/distributions/ - Go to Settings → Plugins → ⚙️ → Install Plugin from Disk
- Select the
.zipfile above and restart the IDE
src/
├── main/
│ ├── kotlin/
│ │ └── com/husttwj/imagecompress/ # Main plugin logic
│ └── resources/
│ └── META-INF/plugin.xml # Plugin descriptor
Thanks to the TinyPNG Image Optimizer plugin.
Although it's incompatible with Android Studio Meerkat | 2024.3, its excellent design and functionality served as a valuable reference.




