View unanswered posts | View active topics It is currently Mon Feb 08, 2010 5:23 pm



Reply to topic  [ 5 posts ] 
 Make PNGs Smaller 
Author Message
Webmaster
User avatar

Joined: Sun Dec 16, 2007 2:07 pm
Posts: 4925
Location: Cincinnati, Ohio
Xfire ID: alloy45224
Steam ID: _TyIzaeL_
GFWL ID: TyIzaeL
Post Make PNGs Smaller
This post goes over using OptiPNG and AdvanceCOMP to make PNGs smaller. This is especially useful for web designers, as well-compressed PNGs can actually be smaller than GIFs.
Attachment:
File comment: MD5:
61c5f941003282181828617c29d41baa

PNG Compression Tools.7z [385.87 KiB]
Downloaded 33 times


Install both programs by running the installer inside the attached file and telling it to install to C:\Program Files\PNG Compression Tools. You will have to modify the batch files if you install to a different directory.

Both of these programs are command-line utilities, meaning that they take text commands only (no point and click interfaces). However, fear not! You can save yourself the trouble of even opening a command-line window by creating shortcuts in the SendTo menu.

To get to the SendTo folder in Windows XP, do the following:
  1. Open a run window (WinKey + R).
  2. Type sendto and hit enter.

To get to the SendTo folder in Windows Vista, do the following:

  1. Open a run window (WinKey + R).
  2. Type (or paste) %appdata%\Microsoft\Windows\SendTo and hit enter.

Once in the SendTo folder, do the following:
  1. Right-click an empty area, an go to New > Shortcut. The New Shortcut Wizard will appear.
  2. In the box where you would type the location of the item, enter the location of "Re-Compress PNGS.bat" ("C:\Program Files\PNG Compression Tools\Scripts\Re-Compress PNGs.bat" if you have it installed in your Program Files directory).
  3. Enter a name for the new shortcut, I recommend Re-Compress PNGs.
  4. Create a new shortcut for "Re-Compress PNGs in Folder.bat", with the location: "C:\Program Files\PNG Compression Tools\Scripts\Re-Compress PNGs in Folder.bat". Name it Re-Compress PNGs in Folder.

To re-compress your PNG file:
  1. Right-click the PNG file, go to Send To > Re-Compress PNGs. A command window will appear and you will see the output of OptiPNG and then AdvanceCOMP as they re-compresse each file. OptiPNG/AdvanceCOMP will not overwrite your PNG file if the output file size would be larger.

    Further Information
    • It is necessary to use OptiPNG first, because OptiPNG performs a more advanced re-compression of the PNG file. It applies delta filters, removes unnecessary data chunks, and reduces the bit depth if possible (without reducing quality). AdvanceCOMP uses the 7-zip DEFLATE algorithm (which is more effective than the standard one) to make the file smaller.
    • OptiPNG can also be used to covert gif, bmp, pnm, and certain tiff images to png.
    • OptiPNG on Wikipedia.
    • AdvanceCOMP on Wikipedia.

    Here is an example of the kind of compression you get using this method. The original file was 765KB.
    • Compressed only with OptiPNG, it is 681KB. (10.9% savings)
    • Compressed only width AdvanceCOMP, it is 739KB. (3.3% savings)
    • Compressed with AdvanceCOMP then OptiPNG, it is 681KB. (10.9% savings)
    • Compressed with OptiPNG then AdvanceCOMP, it is 679KB. (11.2% savings)

Bigger savings are had when the bit depth can be reduced (ex: grayscale or images with <= 256 colors).

Last Updated: July 24, 2008

_________________
Image


Sun May 11, 2008 1:24 pm
Profile MSNM/WLM YIM AIM
Srsly owns
User avatar

Joined: Tue Dec 18, 2007 6:20 am
Posts: 1416
Location: Cincinnati, Ohio
Xfire ID: izoxoiz
Steam ID: RaNaL_Ap3
Post Re: Make PNGs Smaller
Although very interesting and useful(for others), I doubt I'll use it. But it is still awesome nonetheless. Good work

_________________
Image


Mon May 12, 2008 7:51 pm
Profile WWW
Webmaster
User avatar

Joined: Sun Dec 16, 2007 2:07 pm
Posts: 4925
Location: Cincinnati, Ohio
Xfire ID: alloy45224
Steam ID: _TyIzaeL_
GFWL ID: TyIzaeL
Post Re: Make PNGs Smaller
Jun 28, 2008
  • Updated to include OptiPNG 0.6.
  • Now includes scripts to make PNG re-compression required only one SendTo action.
  • The scripts have the capability of compressing multiple PNGs at once.

_________________
Image


Sat Jun 28, 2008 2:17 pm
Profile MSNM/WLM YIM AIM
Srsly owns
User avatar

Joined: Tue Dec 18, 2007 6:20 am
Posts: 1416
Location: Cincinnati, Ohio
Xfire ID: izoxoiz
Steam ID: RaNaL_Ap3
Post Re: Make PNGs Smaller
I actually have ended up using it and it does save a significant amount of space when done in bulk! :icon_mrgreen:

_________________
Image


Sat Jun 28, 2008 9:55 pm
Profile WWW
Webmaster
User avatar

Joined: Sun Dec 16, 2007 2:07 pm
Posts: 4925
Location: Cincinnati, Ohio
Xfire ID: alloy45224
Steam ID: _TyIzaeL_
GFWL ID: TyIzaeL
Post Re: Make PNGs Smaller
July 24, 2008
  • Updated OptiPNG to version .0.6.1. - Changes

_________________
Image


Wed Jul 23, 2008 11:35 pm
Profile MSNM/WLM YIM AIM
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.