A Plugin for Sketch that compresses your bitmap assets using TinyPNG API. This Plugin requires Sketch 3.8.
Please note that the compression is slightly lossy, check out TinyPNG website for more info
Installation
- Download Sketch TinyPNG Compressor & unzip it.
- Double click Sketch TinyPNG Compressor.sketchplugin to install the Plugin.
Setup
The pipeline is pretty straightforward:
- Get your API token on TinyPNG website, you have to be authorized, the token includes 500 free compressions per month
- Then go to
Plugins > Sketch TinyPNG compressor > Enter TinyPNG API key
- Paste the token into the dialog
You’re all set now!
Usage
- Just select the slices you wish to export as
jpg
orpng
(other formats are not supported, unfortunately) and export them as usual - After a couple of seconds you’ll see the message saying the export was successful: