Register now or login here to start promoting your blog and your favourite articles.
Most Effective Method to Reduce and Optimize PNG Images
10 Mar 2010 - 16 Comments
A friend of mine showed me this simple but effective technique to reduce PNG image file size without compromising too much of the image quality. I was pretty amazed and I want to share it with you all and I hope this will help you.
Author: kevin | Source: queness

Introduction

Just recently, I was assigned to in charge of an iPhone game website. Due to the design, it needs heaps of png files so that I can use CSS to layer them together. It's quite a sophisticated website when it also come with a jQuery scrolling effect. I hope I can show it here, but it haven't released yet. :)

I like png, it supports by all the browsers (except IE6, but you have the hack anyway). Usually, I would use JPEG or GIF, but this time, most of the images has drop shadow and the background of the website is tiled with clouds. However, we're facing a problem, the file size of the PNG files are pretty massive. Though most of us has fast Internet, but it's good to optimized all the images to be as small as possible without losing quality.

One of my friend showed us this technique to reduce PNG file size and I was pretty amazed. All the time, the PNG optimizer is here with me. That's it, we're using Adobe Photoshop to do it. Of course, not the Save as web, just one more step, we can reduce PNG file size but still maintain its image quality.

So, Obviously, you need photoshop, not sure if Gimp have it.

Step 1: A PNG File

I choose an image randomly and this is it:

Optimize PNG - Choose a PNG file

Step 2: Posterize it

Go to the menu bar, Image -> Adjustment -> Posterize

Optimize PNG - Posterize option

Step 3: Posterize it

After you've clicked on Posterize, you should able to see a dialog . It has a slider for posterize level adjustment. Slowly adjust it to your desired quality. If you observed it carefully, you will able to see some colors are being discarded, and that's the way to reduce the file size.

Optimize PNG - Adjust posterize level

Step 4: Save as web

Okay, the final step - save your file. Go to File -> Save as web... Then, you've just optimized your PNG file! I believe your PNG file size is reduced.

Optimize PNG - Save as web

A small test

The following is some tests I have done to see how much file size it has reduced.

  • Optimize PNG - Save as web

    Original file - 147 KB

  • Optimize PNG - Save as web

    Web Optimized (Save as web without posterization) - 70 KB

  • Optimize PNG - Save as web

    Posterized and save as web - 53 KB

  • Optimize PNG - Save as web

    Posterized with slight losing of Image quality and save as web - 37 KB

Conclusion

There are a lot of softwares out there, but most of them couldn't do the job well. I still reckon we need human eyes to make sure we optimize the images properly without compromising too much of the image quality. This is a simple technique and I guess it's the most efficient and less time consuming. However, we do need Adobe photoshop or si image editor that has posterize or similar capabilities.

If you think, it's not worth it to run a big program just to do a small task, well, it works for me because I have photoshop running all the times. :) I hope it helps. Cheers.

If you have a better way to do it, don't forget to share it in the comment below :)

Copyright & Usage

The effects and techniques demonstrated in tutorials on Queness can be used in whatever manner you wish without attribution. You cannot copy whole tutorials (unless permission is given), either in English or translated to another language.

Share This Post to Support Me! :)


Comments

Fabio on 15 Jul 2010 says:
Really useful!
Was trying to study the PNG compression algorythm then I read your post!
Thank you
Clipping Path India on 25 Jun 2010 says:
I faced a problem at the time of using my picture and i solved it by reduce resolution but i lost my image quality. By this tutorial i knew how to reduce the image size without losing image quality. I think png is final solution.
rob on 24 Jun 2010 says:
is there an editor that can create an alpha layer, then save it as an iphone optimised png?
Al Kamal Md. Razib on 11 May 2010 says:
Great !! Thats a nice interesting posting. Thanks for sharing.
Anbu on 10 Apr 2010 says:
Hi,
Found one more nice idea. Saved PNG as GIF. Again saved GIF to PNG. Size reduced from 120kb to 34kb without reduction of quality.
Dejan Web Dizajn Artist on 8 Apr 2010 says:
Hey just what I needed! :)
svart on 8 Apr 2010 says:
Well it works :)

thanks
electrical on 19 Mar 2010 says:
thank you for information.
hjhndr on 13 Mar 2010 says:
Do check out:
http://optipng.sourceforge.net/
It shaves about 25% or more off already optimized pngs. For real.
Web Design Kent on 12 Mar 2010 says:
I make J2ME games for mobile phones. We have done several tests, and PNGOUT always comes out on top as the best PNG optimiser.
  • Page :
  • 1
  • 2


Leave a comment

Subscribe RSS Subscribe RSS, Keep yourself updated with queness latest posts!
Pixel Crayons

Buy wholesale computers directly from China at DHgate.com

Discover the tools to build your e-Commerce Site with Netfirms

Buy China Products from Made-in-China.com

Cocktail Dresses

SmartPhone Cell Phone

Wholesale electronics

VPS Hosting - cPanel virtual servers from Host Color

Web Hosting Rating

Buy WOW Gold

  •  
  •  
  •  
  •  
  •  

Community News

Recent Comments

Random Posts


View all posts and news Back to top

About the Author

A web designer and developer who is passionate and keen on contributing to the web development industry. Feel free to say hi to me, or follow me on twitter.

Kevin Liew