Sketch TinyPNG compressor

Compress exported shit via TinyPNG automatically

v2.0.1 is compatible with Sketch 3.8.0

TinyPNG Compressor :zap:

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

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 or png (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:

Look at me

Sometimes TinyPNG API can respond with internal server error for whatever reason (especially when you're exporting a large image), in such cases you can try again, and that might help, though for some images it never helps. I hope to fix it in future releases

Anyway if you're exporting a bunch of small png icons or something like that — you should be fine :ok_hand:

LICENSE

The MIT License (MIT)

Copyright (c) 2016 The Plugin Authors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Join the discussion

Download v2.0.1
Usage Activity
400100

No Sketchpacks Relay integration found

Stats
  • 51 downloads all–time
  • 10 downloads this week
  • 51 downloads this month
About this plugin

alxrm published this plugin 14d ago.

v2.0.1 is the latest of 2 releases

Native updates are supported within Sketch.app.