Jump to content
How to Install Plugins ×

TinyPNG v1.0 (March 4, 2015)


toe_head2001

Recommended Posts

TinyPNG

This is a save filetype plugin that will use the TinyPNG service to compress images. Requested here. TinyPNG uses lossy compression, while maintaining transparency and most visual quality.

 

A few things to keep in mind:

-An active internet connect is required

-This will send your image to a third party service (TinyPNG), and download a compressed version generated by said third party. You'll need to read their Terms of Service; especially the privacy section.

-You need to sign up for your own API key.

 

Real world photo comparison:

Your Mileage may vary

Left: Original Image - 204KB, Right: TinyPNG (very little compression artifacts) - 44KB

normal.png.tinypng.png

 

Spoiler

Example Photo Comparison

Original - 204KB OptiPNG (default settings) - 126KB OptiPNG (Palette option) - 47KB TinyPNG - 43KB
normal.png optipng1.png optipng2.png tinypng.png

Large Color Spectrum Comparison

Original - 259KB OptiPNG (default settings) - 36KB OptiPNG (Palette option) - 40KB TinyPNG - 27KB
c-normal.png c-optipng1.png c-optipng2.png c-tinypng.png

 

Download

:arrow-right:  TinyPNG.zip

 

Installation

1) Place both TinyPNGPlugin.dll & TinyPNG.txt into your FileTypes directory.

2) Copy and paste your API key into the TinyPNG.txt file.

 

 

 

Source Code

https://github.com/toehead2001/pdn-tinypng

Edited by toe_head2001
  • Upvote 2

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

It is important to say (and should be mentioned in the first message of the topic ) that the result of TinyPNG is loosy and not lossless. That's the reason for the big difference in size. But if the result is loosy then people have to ask themself why they should use this format instead of jpeg.

midoras signature.gif

Link to comment
Share on other sites

On 3/4/2015 at 11:17 PM, midora said:

It is important to say (and should be mentioned in the first message of the topic ) that the result of TinyPNG is loosy and not lossless. That's the reason for the big difference in size. But if the result is loosy then people have to ask themself why they should use this format instead of jpeg.

 

Right you are; I added the lossy information to the first post. The main advantage over jpeg is transparency.

 

Personally, I will never use this service in practice, because I don't like sending my personal images off to some third party. Same reason I usually don't touch Google Docs, Dropbox, and other cloud services.

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

I'm always happy if the users get more alternatives if has a chance to understand what he gets. So thanks for this.

 

To be fair against OptiPNG you may add the results of selecting the 'palette' option in OptiPng. I would expect that the difference to TinyPNG will be quiet small.

midoras signature.gif

Link to comment
Share on other sites

To be fair against OptiPNG you may add the results of selecting the 'palette' option in OptiPng. I would expect that the difference to TinyPNG will be quiet small.

 

Yes, with 'Palette' option toggled on, OptiPNG will output a file size that's pretty much the same size. However, the visual quality is very noticeable lower. I'll add a more comprehensive comparison table, so people can weigh their options.

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

Confirming it's working, thank you very much!

 

Sure, some local alternative with similar compression results would be nice but I don't know of any - do you?

Link to comment
Share on other sites

Confirming it's working, thank you very much!

 

Sure, some local alternative with similar compression results would be nice but I don't know of any - do you?

 

But did you test with the 'palette' option of OptiPNG? It does the same as TinyPNG: Reducing the png to 8-bit colors.

midoras signature.gif

Link to comment
Share on other sites

  • 9 months later...
  • 4 months later...

Have you looked at this website yet?
https://pngmini.com/lossypng.html

I first heard about Lossy PNG encoding there; you should consider taking it a look, if my eyes do not deceive me, then they actually have the Source Code available... which means it can be turned into a Paint.NET plugin instead of a standalone program, it would get better results than TinyPNG, and most importantly it wouldn't require an online service.

It can also do low-color paletted images that still contain an alpha channel... of course, it's not compatible with Paint.NET's native PNG exporting, but it is still pretty sweet none the less. (Can't wait for 24-bit images with transparency threshold, or alpha-channel dithering for transparency thresholds)

Edited by Amaroq Dricaldari
Link to comment
Share on other sites

  • 9 months later...
  • 5 months later...
On 3/4/2015 at 9:43 PM, toe_head2001 said:

Installation:

1) Place both TinyPNGPlugin.dll & TinyPNG.txt into your FileTypes directory.

2) Copy and paste your API key into the TinyPNG.txt file.

 

Please check to see if you have followed the install instructions properly.

  • Upvote 1
Link to comment
Share on other sites

BoltBait is absolutely correct.

There is no API Key in the source code.

 

As for posting the source code... I guess I forgot to do that. I'll post it in the coming days.

  • Like 1
  • Upvote 1

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

Ok, the source code has been posted:

https://github.com/toehead2001/pdn-tinypng

 

I also add a few more sanity checks to the code, and added some more specific error messages.

 

Again, there are no API Keys within the source code.

  • Upvote 2

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...