PNG Image Format VS GIF and JPEG Formats
Published: July 21, 2009


The GIF, PNG, and JPEG formats are the most commonly used file formats on the World Wide Web today.

The PNG format (Portable Network Graphics) was developed in 1995 to replace the GIF (Graphics Interchange Format) format for two reasons.  The first reason is that the GIF format is patented and developers using software implementing this format would be subject to royalties.  The PNG format doesn’t have any patent so it can be read and written by software developers and webmasters without having to pay any royalties. The second reason is that a GIF image can only be saved as an 8 bit image, which basically means you are restricted to just 256 colours.  PNG can be saved as an 8 bit, 24 bit - up to 64 bit!  Also, PNG supports a much higher level of transparency whereas GIF images only allow one out of the 256 colours to be fully transparent.

A very popular feature of the PNG format that wins over a lot of folks is the alpha channel.  A PNG image with the alpha channel feature is able to achieve 256 levels of transparency which means you can antialias text and images to allow sharp curves to look good against a changing background – drop shadows will fade nicely into the background, and any image can be created to take any shape or form.

From the standpoint of the graphic artist, the GIF and PNG format is very much the same – both use loss-less compression which means that once the image is saved there is no further decrease in the image quality or sharpness.  This allows you to decompress, edit and recompress the image without degradation of image quality.  However, benefits that PNG have over the GIF format is that PNG, in almost every case, compresses more efficiently and will be up to 20% smaller than a GIF file.

Another winning feature of the PNG format is its ability to adjust gamma based on the monitor settings.  An image can be viewed the way it was intended to be viewed because the PNG format stores the gamma information in an image and the application reading the PNG takes note of that gamma information.

A significant disadvantage of both GIF and PNG formats is that they are not really good at compressing complex, natural images, especially images that come from photographs.  This is where the JPEG format shines.  The JPEG format (Joint Photographic Experts Group) has a more complicated compression and records an image by looking at areas, patterns and colours - the GIF and PNG record images by describing each pixel separately.  With complicated, natural images, the GIF and PNG can take up to 10 times the space of a JPEG which is why the GIF and PNG are usually used for smaller images.  In general, the JPEG is a really good format for compressing natural looking images into a very small size.  Because a JPEG’s compression is so complex and it is not a perfect compression format – slight imperfections can arise in the decompressed image if used incorrectly.  Examples of these imperfections are blurring around text and flat areas of colour.  Other disadvantages to the JPEG format are that it is unable to include transparent areas and the image quality degrades each time a JPEG is resaved.

A general rule of thumb is to use the PNG and GIF format for basic images with limited numbers of solid, sharp areas of colour – basic images like logos, text, graphs, headings, buttons etc.  Start using PNG over the GIF format as PNG has a lot more benefits and is now widely supported on the web.  For complex, natural images like photographs, the JPEG format is your best bet.

About the Author
Anna Agnew is an author for The Computer Geek Custom Web Page Design. The Computer Geek is a web design company that prides itself in professional service at a fraction of the cost. The Computer Geek specializes in Custom Web Design, PHP & MySql and Ecommerce.

Customer Reviews:

Published: September 7, 2017
Rich Agnew and his crew at Computer Geek are great to work with. We switched hosting companies a couple of weeks ago and contacted Rich about transferring all our files to the new hosting company. The transfer was successful and smooth. I thought i...[Read More]
Chad Pugh
chad@nationofblue.com

 

Published: August 19, 2017
I had a band website that relied on an old media player that eventually became obsolete when support for it was dropped. I had designed it myself, and in doing so I had a very specific way I wanted our music page to look and work, and in searching ar...[Read More]
Donald Jefferes
jzerony@aol.com

 

Published: June 19, 2017
"The professionalism and expertise which I experienced from Rich Agnew at The Computer Geek is streets ahead of any other service provider. When we were hit with a virus we were at our wits end but within minutes they had sorted us out. We were ama...[Read More]
Toni Gomes
ceo@bpw-jhbsa.co.za

 

Published: June 13, 2017
"Excellent service, very professional to work with. My company's website had become infected with malware. The website is used to direct sales, but equally as import it is used as the portal for the support ticketing system. The site needed to be ...[Read More]
Jake Baker
jbaker@comcomsystems.com

 

Published: April 18, 2017
Geeks make it look easy. After hiring the Computer Geeks for a lot of minor site work, I decided to follow Rich's advice and start from scratch. Rich & Co. designed and built a new site for my business, quickly and efficiently, with sleek, profession...[Read More]
Alan Perlman
alanperlmanphd@gmail.com

 

Published: April 17, 2017
Your alacrity and client service have been evident from the moment you popped up in a chat screen during my visit to your website. I also deeply appreciate your competence and kindness. Your services are a valuable asset to us and I am grateful for y...[Read More]
Judy Tashbook Safern
jsafern@shearith.org

 

Published: March 16, 2017
Rich and his team at Computer Geek are awesome! They fixed my virus infected website extremely fast (just a day!) and everything turned out great. I will definitely use them again the next time I'm in need of tech help. Thanks guys!...[Read More]
Kate Marcin
katemarcin@gmail.com

 

Published: January 14, 2017
Searching for a competent English-speaking webmaster can be a daunting task, especially if searching the Internet without a personal recommendation from a friend. I discovered Computer Geek's website, liked what I read, and contacted Rich. He promptl...[Read More]
Rand Winburn
randw@iconbusters.com

 

Published: December 22, 2016
Excellent communication and quick to get the job done....[Read More]
Adam Roberts
adamrobertswork@gmail.com

 

Published: July 27, 2016
BEST SERVICE I HAVE EVER EXPERIENCED !!! Called Rich one morning to have my website fixed since it was hacked . I must say he really knows what he is doing in no time at all my site was back on line all malware removed and my web site updated and pro...[Read More]
Eric Bjorkgren
preservewax@gmail.com

 

[Read More Testimonials Here]

Latest Website Related Articles

What is Cross Site Scripting?

Published: September 13, 2017
Cross site scripting (XSS) is when criminal hackers use weakness's in a website application to inject malicious code into that website which causes the website to behave in a way it was not designed to do. The website weakness which allows ...[Read More]

 

Are Your WordPress Plug-ins Updated?

Published: May 7, 2017
The hackers normally get in through weakness's in your plug-ins. You must keep all your Word Press Plug-ins updated at all times. These updates will fix holes that allow the hackers to access your site through what's called a back door. This...[Read More]

 


Here are some links to related topics:
 oscommerce designer,   new webmaster,   finding a webmaster,   xcart hacked,   small orange hacked,   hostmonster hacked,  


Site Secured By The Website Guardian
PNG Image Format VS GIF and JPEG Formats | Computer Geek 5 out of 5 based on 103 user ratings.
PNG Image Format VS GIF and JPEG Formats | Computer Geek
PNG Image Format VS GIF and JPEG Formats - The GIF, PNG, and JPEG formats are the most commonly used file formats on the World Wide Web today. The PNG . . .
PNG Image Format VS GIF and JPEG Formats | Computer Geek
Date Published: 10/09/2016
PNG Image Format VS GIF and JPEG Formats - The GIF, PNG, and JPEG formats are the most commonly used file formats on the World Wide Web today. The PNG . . .
5 / 5 stars