I am no expert in graphics or images but I do have some basic knowledge about them such as GIF is normally used for animated images, JPEG is for high quality pictures, BITMAP, I have no idea what is it for because the file size is huge, and finally PNG, the image format that I normally use in this site because the size is small and the quality is pretty good as well. If you do a search on JPG vs GIF vs PNG, you’ll find a lot of information about these image formats and each has its own pros and cons.
Another thing I know is images can be compressed into smaller size. Reason is I get to save my webhost bandwidth and also you guys can load up the page faster. I normally use HyperSnap-DX to capture screenshot and also to do simple image editing. It can save the screenshot in many different image formats and lets you to choose if you want a higher quality or smaller size when I want to save the image. The images saved by HyperSnap is pretty small but I never knew that it could be compressed further. Compressing images and making it smaller is important as long as the quality of the image is not affected. Here are 4 free small and portable tools that can compress PNG images.
I’ve put all 4 PNG compressors to the test to see how much time it requires for maximum compression and also the size of the PNG file that it managed to reduce.
1. OptiPNG

OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information. This program also converts external formats (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks and corrections. It is a command line utility, so you’ll need to read the manual on the command line switches. The command line for OptiPNG to compress at maximum is “optipng -o7 image.png”. Take note that it is the letter o and NOT number zero. There is a a GUI for OptiPNG called akJ OptipngWrapper created by Aki which runs on Java.
OptiPNG took 48 seconds to compress a 170050 bytes PNG image file to 166204 bytes (-2.26%).
2. pngcrush
Pngcrush is an optimizer for PNG (Portable Network Graphics) files. It can be run from a commandline in an MSDOS window, or from a UNIX or LINUX commandline. Its main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels an PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including gAMA, tRNS, iCCP, and textual chunks. Also a command line utility and there are many switches available. The maximum compression command is “pngcrush -brute image.png”.
pngcrush took 30 seconds to compress a 170050 bytes PNG image file to 167059 bytes (-1.75%).
3. AdvanceCOMP
AdvanceCOMP is a collection of recompression utilities for .ZIP archives, .PNG snapshots, .MNG video clips and .GZ files. It recompress ZIP, GZ, PNG and MNG files using the Deflate 7-Zip implementation. Also a command line utility. The command for highest compression for PNG file is “advpng -z4 image.png”.
AdvancedCOMP took 11 seconds to compress a 170050 bytes PNG image file to 163840 bytes (-3.65%).
4. PNGOUT
PNGOUT optimizes the size of .PNG files losslessly. It uses the same deflate compressor that the author wrote for KZIP.EXE. With the right options, it can often beat other programs by 5-10%. That includes pngcrush -brute, optipng -o7, advpng -z4, etc. The command line for highest compresson for PNG file using PNGOUT is “pngout image.png”. By default it uses the Xtreme compression which is the highest.
PNGOUT took 141 seconds to compress a 170050 bytes PNG image file to 152409 bytes (-10.37%).
As you can see, PNGOUT did manage to beat the rest of the PNG compressors like it said but it sure took a lot of time to do it. AdvancedCOMP did pretty well because it took only 11 seconds to complete the process and it has higher compression than OptiPNG and pngcrush.
Related posts:
The all are in a nice Mac GUI: imageoptim.pornel.net and there’s PNG8 compressor that does wonders: pngmini.com
I’ve created a Mac OS X frontend for Optipng called PNGPress, which is available on the App Store itunes.apple.com/us/app/pngpress/id416848846?mt=12
Totally agree with RIOT. It’s by far the easiest and safest to use and it can dramatically reduce the size of most png files.
RIOT (radical image optimzation tool) also provides PNG optimizations as well as JPEG and GIF. It has a side by side interface where you can compare the original with the result.
RIOT is the fastest and contains builtin support for optipng, pngout.
Uma ótima ferramenta recente e totalmente brasileira é o Otimizador do Grupo Dicas em Geral -> dicasemgeral.xpg.com.br/otimizador/
Perfeito para quem mantém um site ou blog na internet e manipula diversas imagens.
Muito simples, de fácil acesso e em poucos segundos já está tudo feito. Vale a pena!
@ Elqno: you analogy is almost right, except that MP3 is not lossless. FLAC on the other hand it is and has a much smaller size than WAV but both are uncompressed audio.
Anyway, thanks Ray for the links. Gonna try them wiht some images now.
thanks!! it help me alot..
BMP is for Bitmap and it’s the uncompressed image, isn’t use for internet/transfer purposes, it’s more likely in audio, Wav files are the uncompressed/original audio, while mp3 is a loseless audio format…i guess now you got an idea about it ;)
+1 for Image Compressor 2008.
It can really compress (or recompress?) JPEG file without quality loss.
And yes, it can automatically compress RAW to JPG too.
Try punypng for png compression.
punypng.com
It usually beats out optipng and even pngout at times. It supports dirty transparency as well, to compress down transparent images better than the rest.
how about .jpg image ?
Png is normally used because it has support for the alpha (transparency) channel and is lossless (plus it’s filesize is pretty small). If you don’t need those, there are many Jpg compressors which take the filesize down by a lot more (like 70%+) with little quality difference. I am currently using “Image Compressor 2008″ (shareware) to compress my images when I put them on my website. It doesn’t seem like much, compressing a 100kb photo down to 25kb, since most people have broadband, but when I get 15000 visits per month, it does save a lot in bandwidth.
…but here is the BEST:
PngOptimizer psydk.org/PngOptimizer
Too bad, at first I am happy to know that there is a GUI windows version PNG out. But Windows version is pay. So I am stuck with dos version.
Thanks mate!
thx ray~
PNG is the best image format in saving bandwidth :D Now you can crush it summore…