PNGCrusher: Make Your Web Graphics Smaller
I love it when I find a little freeware application that makes my life easier. Anyone who works with graphics on the web is likely working with PNG files, like a GIF file (without the silly Compuserve patent nonsense) with good compression (like JPG). Aaron Madon-Kay has created a simple That's all just way of saying this: PNGCrusher will provide significant compression your PNG files and can save you a lot of bandwidth (and therefore, money). I've been using the PNG format more and more (abandoning GIF and JPG) for my web work. This software gives me another great reason to use only PNG.
The graphic used for this post was 80K when saved from Photoshop but 12K after being processed by PNGCrusher. There is very little human-eye detectable difference between the two. Color me impressed.
Share
Categories
I love it when I find a little freeware application that makes my life easier. Anyone who works with graphics on the web is likely working...
Add a Comment
Rereading some of the comments here, I just wanted to add the following: Yes, many programs allow the user to set compression levels on PNGs. The problem is that there often exists a way to improve the compression beyond whatever quick first-pass attempt these apps make. Of course this will usually only save a few percent of the file size, but for certain uses (such as bandwidth-intensive applications, like web design) it can be worth your time to pursue such savings. Again, I can't speak to Photoshop's compression, but output from Preview.app and The Gimp are most certainly NOT optimized, and frankly I'd be surprised if Photoshop's is either. If you'd like to make sure, run a file through PNGCrusher while Console.app is open, and you can see OptiPNG's output. A note to the original blogger (Damien): Your test case was not typical. In general you will only reduce file sizes by about 10%; clearly in your case there was a large resource fork that was removed in the process of optimizing.
November 29 2005 at 12:50 PM Report abuse Permalink rate up rate down ReplyHello. I'm the author of PNGCrusher. First of all, just a small correction: The app is not AppleScript, it's a bash script wrapped with Platypus. And for all those people saying it's useless: Not everyone has Photoshop, and I can say from personal experience that The Gimp, even with highest compression settings, doesn't produce optimal output. I can typically save at least a few KB by running Gimp's output through OptiPNG. I don't know about Photoshop since I don't have it.
November 29 2005 at 12:40 PM Report abuse Permalink rate up rate down ReplyI've been trying to use PNG files for a while until I found that the colours were being shifted. For example, I created a blank html file with a place in the middle for my image. I used the same hex value for my html file as I did for my background colour in photoshop. I then saved the 100x100 image as a PNG and then saved another time as a GIF. When I pulled the png into the html file, the colour of the PNG didn't match the colour of my html's background but the GIF image did, even though they were created with the same hex value.
November 23 2005 at 10:59 AM Report abuse Permalink rate up rate down ReplyMischa is entirely correct. I always create two classes when using PNG files in CSS. One has the PNG marked !important , and the other has the same image as a JPG without any importance classification. That way, browsers will try to load the PNG first, and if unsuccessful, will load the JPG instead. It's a simple trick that yields results that (almost) everyone can be happy with. And IE users will look at the same site in other browsers and say, "Hey this looks much better in this other browser that isn't IE, I should switch and make every standards-based web developer's life much easier!"
November 23 2005 at 10:39 AM Report abuse Permalink rate up rate down ReplyThis application i hate to say it is pretty silly, if you work in web development, or if you even build any sort of webpage, i'm guessing you'll have access to a graphic editor, Photoshop, or the gimp, or one of the many other cheap/free ones. being able to select compression levels of any format is very standard in these applications, and as such i don't understand the need for this. Also, PNG24's 8bit alpha channel will not work in MSIE, even after applying the pngfix javascript hack, as if the user uses a higher res display (found in some laptops), the alpha 8bit alpha will look terrible.
November 23 2005 at 3:05 AM Report abuse Permalink rate up rate down ReplyMartin, just an FYI: PNG-24 is lossless, but PNG-8 is essentially an improved GIF -- it has the same user-selectable options for bit-depth and palette reduction as GIF. Your point about Brian's "detectable" comment is absolutely correct, of course, but I wanted to point out that saying "PNG is a lossless format" is not quite right. I'm wondering if Eric J was inadvertently using PNG-8; if so, that could explain the puzzling file-size difference.
November 22 2005 at 10:00 PM Report abuse Permalink rate up rate down ReplyI noticed that PS was doing a crappy job of saving PNGs a few months back while working on a Dashboard widget. I found that opening the PNGs in Preview and re-exporting them significantly dropped the file sizes. I have not noticed any artifacts from doing this. I think Preview (PDFKit?) has a mighty decent compressor already there for Mac users.
November 22 2005 at 9:36 PM Report abuse Permalink rate up rate down ReplyI also love the PNG alpha channel support. Of cause, it needs a Javascript hack to work in Internet Explorer... Comment #4 looks kind of bogus to me. Photoshop saves the PNG 10k smaller than the OptiPNG optimizer? Care to provide a URL to the image you used? "There is very little human-eye detectable difference between the two." Now this is something that makes you go "WHAT"? PNG is a lossless format. OptiPNG makes only lossless optimizations. So there should not be ANY differences between the two images, pixelwise.
November 22 2005 at 9:30 PM Report abuse Permalink rate up rate down ReplyWhat about someone who does not have Photoshop? Is GraphicConverter as good at making small-sized PNG files? Also, with Tiger the default screenshot format is PNG, right? Couldn't a person who does not have any graphic software could use a combination of Preview and PNGCrusher to resize their PNG files.
November 22 2005 at 9:12 PM Report abuse Permalink rate up rate down ReplyI ran the same test as Bryan with my own file. Photoshop Save As: 170k Photoshop Save For Web: 60k PNGCrusher: 70k
November 22 2005 at 9:04 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Used Apple iMac 17" Core 2 Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
- Used Apple MacBook Pro 2.4GHz 15" LED Laptop for $1,030 + $29 s&h
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



13 Comments