Paint.NET

Welcome to the Paint.NET forum!
It is currently Sun Nov 22, 2009 10:45 am

All times are UTC


Forum rules


Questions or problems with plugin installation? Click here.



Post new topic Reply to topic  [ 81 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: OptiPNG file type plugin (November 30, 2008)
PostPosted: Sat Oct 06, 2007 10:59 pm 
Offline
User avatar

Joined: Wed Jun 20, 2007 2:23 am
Posts: 185
This plugin integrates OptiPNG with Paint.NET. It optimizes PNG to make them smaller, which is good for web use.

Compiled DLL:
Attachment:
OptiPNG plugin.zip [105.29 KiB]
Downloaded 8524 times

Both the DLL and optipng.exe need to be in the FileTypes directory.

November 30 - updated to OptiPNG 0.62, some minor changes suggested by antond
October 24 - updated to OptiPNG 0.61, no changes in my code
June 20 - updated to OptiPNG 0.6, no changes in my code




Source Code:
License: GNU General Public License (GPL) v3
Attachment:
File comment: This is SOURCE CODE. Most of you want the compiled program above.
Source Code.zip [119.65 KiB]
Downloaded 573 times


Last edited by I Like Pi on Mon Dec 01, 2008 5:00 am, edited 17 times in total.

Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Sat Oct 06, 2007 11:17 pm 
Offline
Forum Moderator and 2008 "Radiance Award" Winner
User avatar

Joined: Sat Mar 03, 2007 7:17 pm
Posts: 3943
Location: Sheffield, England.
Original - 57.2 KB
Attachment:
PNG_transparency_demonstration_1.png


OptiPNG file type plugin; RGB with alpha, compression 7 (basically the defaults which appeared) - 58.8 KB
Attachment:
PNG_transparency_demonstration_1 v2.png


(The black backgrounds are fully transparent).

_________________


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Sat Oct 06, 2007 11:24 pm 
Offline
User avatar

Joined: Tue Jul 17, 2007 6:26 pm
Posts: 2129
Location: In a lobby....
Myrddin wrote:
Original - 57.2 KB
Attachment:
PNG_transparency_demonstration_1.png


OptiPNG file type plugin; RGB with alpha, compression 7 (basically the defaults which appeared) - 58.8 KB
Attachment:
PNG_transparency_demonstration_1 v2.png


(The black backgrounds are fully transparent).


Your kidding me, it makes it larger :?

_________________
Image
Thanks to Simon for the hosting of the php images


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Sat Oct 06, 2007 11:31 pm 
Offline
User avatar

Joined: Wed Jun 20, 2007 2:23 am
Posts: 185
Lots of Wikipedia's images are already optimized :wink:

Quote:
17:58, 17 August 2007 JeffyP 320×240 57 KB revert
17:39, 17 August 2007 JeffyP 320×240 44 KB Compressed even further
08:03, 15 October 2005 Txuspe 320×240 57 KB Compressed with PNGOUT.
00:45, 12 July 2005 Daniel G. 320×240 62 KB 24bit PNG with 8bit alpha layer Rendered in POV-Ray by user:ed_g2s. See also: Image:PNG transparency demonstration 1.png {{GFDL}}


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Sat Oct 06, 2007 11:44 pm 
Offline
User avatar

Joined: Tue May 29, 2007 4:33 pm
Posts: 478
Location: Coruscant
Maybe we should do a little benchmark with new pictures.

Would be interesting to compare it with HD Photo, too.

I would do it, but I will not be here again until Monday, so please don't wait for me.

And thanks for the plugin, at least this is a good step.


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Sat Oct 06, 2007 11:49 pm 
Offline
Forum Moderator and 2008 "Radiance Award" Winner
User avatar

Joined: Sat Mar 03, 2007 7:17 pm
Posts: 3943
Location: Sheffield, England.
Fair comment I Like Pi...

Original - 33.7 KB
Image

OptiPNG file type plugin; RGB with alpha, compression 7 - 26.1 KB
Image

--------------------------------------------

Original - 651 KB
Image
Click for larger

OptiPNG file type plugin; RGB, compression 7, transparency threshold 0 - 394 KB
Image
Click for larger

Well done, it works! Thank you very much, this will save considerable time. The slow speed I'll attribute to OptiPNG as all the PNG optimisers I've tried are reasonably slow, however, is there anything you can do about speed, especially when dealing with larger images?

_________________


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Sun Oct 07, 2007 1:04 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 2:23 am
Posts: 185
Small update:
  • Changed default optimization level to 2 because it's OptiPNG's default
  • Added some more tooltips
  • Interlacing on/off

In the future, I may expose more of OptiPNG's command line options so users who know what they're doing can eshew OptiPNG's preset levels (which basically brute force a bunch of settings for the smallest size).
Problem is I don't fully understand the options.


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Sun Oct 07, 2007 4:31 pm 
Offline

Joined: Sat Feb 24, 2007 12:53 am
Posts: 1999
Location: Colorado
Nice. This might be really usefull. Ive been using OptiPNG for a while now, and its great to see it integrated into Pdn.

_________________
Sig coming to celebrate post #2000!

so ill probably just disappear on post 1999


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Mon Oct 08, 2007 7:06 pm 
Offline

Joined: Fri Sep 14, 2007 11:09 pm
Posts: 1953
Erm, it's an empty folder?
Image

_________________
http://synthastic.deviantart.com
http://myspace.com/distodisco

Lockerz invites are available, PM me ;)


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Mon Oct 08, 2007 7:46 pm 
Offline
User avatar

Joined: Fri Sep 02, 2005 4:44 pm
Posts: 2835
Location: Lyon, France
Working here.
Just redownload.


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Mon Oct 08, 2007 9:15 pm 
Offline
Forum Admin and 2008 "Proton Award" Winner
User avatar

Joined: Tue Feb 06, 2007 9:45 pm
Posts: 9483
Location: Indianapolis, IN (39°46′5.88″N 86°9′29.52″W)
This is quite cool! I like it a lot, and it will certainly come in handy! Thanks!

_________________


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Mon Oct 08, 2007 10:07 pm 
Offline
User avatar

Joined: Tue May 29, 2007 4:33 pm
Posts: 478
Location: Coruscant
I Like Pi wrote:
In the future, I may expose more of OptiPNG's command line options so users who know what they're doing can eshew OptiPNG's preset levels (which basically brute force a bunch of settings for the smallest size).
Problem is I don't fully understand the options.


If possible, it would be very nice to see this brute force thing (PNGauntlet has something similar) available. If you have problems you could make a beta, I'm sure you would find a lot of "testers", and maybe this would be a help.


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Mon Oct 08, 2007 10:21 pm 
Offline

Joined: Fri Sep 14, 2007 11:09 pm
Posts: 1953
Ok, it works now. Thanks to you, and to Bob :D

_________________
http://synthastic.deviantart.com
http://myspace.com/distodisco

Lockerz invites are available, PM me ;)


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Mon Oct 08, 2007 11:07 pm 
Offline
User avatar

Joined: Wed Jun 20, 2007 2:23 am
Posts: 185
Fisherman's Friend wrote:
If possible, it would be very nice to see this brute force thing (PNGauntlet has something similar) available. If you have problems you could make a beta, I'm sure you would find a lot of "testers", and maybe this would be a help.

It already uses brute force. The defaults tell OptiPNG to brute force a bunch of filters and stuff. (This is what the "x trials" means.)
From OptiPNG documentation (the -ox corresponds to what this plugin uses):
Code:
Optimization level presets:
    -o0  <=>  -nz
    -o1  <=>  [apply libpng heuristics]         (1 trial)
    -o2  <=>  -zc9 -zm8 -zs0-3 -f0,5            (8 trials)
    -o3  <=>  -zc9 -zm8-9 -zs0-3 -f0,5          (16 trials)
    -o4  <=>  -zc9 -zm8 -zs0-3 -f0-5            (24 trials)
    -o5  <=>  -zc9 -zm8-9 -zs0-3 -f0-5          (48 trials)
    -o6  <=>  -zc1-9 -zm8 -zs0-3 -f0-5          (120 trials)
    -o7  <=>  -zc1-9 -zm8-9 -zs0-3 -f0-5        (240 trials)

(If anyone wants to improve anything, feel free to download the source code.)


Top
 Profile  
 
 Post subject: Re: OptiPNG file type plugin
PostPosted: Tue Oct 09, 2007 12:53 pm 
Offline
User avatar

Joined: Tue May 29, 2007 4:33 pm
Posts: 478
Location: Coruscant
I Like Pi wrote:
It already uses brute force. The defaults tell OptiPNG to brute force a bunch of filters and stuff. (This is what the "x trials" means.)


I see. I thought brute force would mean that it automatically detects the best settings for the picture. When I use PNGauntlet it displays something like "image doesn't fit into 256 color space, try RGB instead". Maybe I'm wrong and this isn't what brute force actually means...? Well, the reason why I asked was that PNGauntlet produced in some tests I made in a bunch of cases files that were around 10 KB smaller, and I thought that would be related to this brute force stuff. Using the file type plugin, you can select many options (like grayscale, RGB with alpha and so on), and my idea was that I used bad settings and as a consequence I got better results with PNGauntlet cause it searched for the best settings... To be honest I haven't looked if the settings of the file type plugin are chosen automatically or if it remebers the previous settings...?

If someone wants to make tests with PNGauntlet (rather useless for 10 poor KB, I think), please note that the release I got came with an outdated version of pngout (the commandline exe which PNGauntlet uses) and I had to download the actual version seperately.

Another question: Can there be a checkbox to disable the preview? I don't know how much the speed impact actually would be...?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 81 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by Forumer & phpBB

Get your Forumer™ today!

Adding a forum to your website is a great way to get return visitors.

» Get your own Free Forum!

Terms of Use

Privacy Policy

Report Abuse

Copyright © 2003-2009 Forumer. All Rights Reserved. | Copyright © paint.NET