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: 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

 

Published: July 27, 2016
Rich and Justin really know their stuff. Whenever an unexpected issue comes up, which happens a lot in our business, they fix the issue immediately while providing exceptional customer service. I truly enjoy working with them and I recommend them to ...[Read More]
Yoni Lautman
ylautman@samaplastics.com

 

Published: June 25, 2016
"I was notified by my web hosting service that they had deactivated my website due to the presence of malware. I contacted Rich, described my issue (via online chat.. Made it very easy), and within the first 30 minutes, I received a quote, and within...[Read More]
Kevin Costello
kcostellocpa@gmail.com

 

Published: June 13, 2016
Rich saved my life!!! I was hacked and Rich saved me. It was a terrible experience, as is always the case when you deal with some pointless, yet malevolent malware created by some greasy faced kid living in his grandmothers basement. My host i...[Read More]
Adam Sommer
kosmognosis@gmail.com

 

Published: April 19, 2016
On Saturday I discovered one of my 6 websites had been hacked and links were leading to porn sites. I was devastated. I found Computer-geek.net online, and filled in a form. This was a weekend, and almost immediately Evan contacted me. His knowledge ...[Read More]
Diana Walker
diana@dianawalker.com

 

Published: March 8, 2016
I had website builder working on my new site for 3 weeks, at the end of 3 weeks I didn't have a completed website. I contacted the computer geek, within a week of working with me, I now have a website. The service was excellent and very professional....[Read More]
Timothy Holt
trholt44@gmail.com

 

Published: February 21, 2016
"I found myself stuck with an email response form issue on a clients website. These guys spoke to me over the phone and quoted me a price. Happily, they stayed within the initial quote and fixed my problem. If I ever need help again they will be the ...[Read More]
Robert Jordon
papajordan53@gmail.com

 

Published: February 18, 2016
"I had a great experience with help from Computer Geeks. I was above my pay grade with a PHP update and spent 2 days of wasted time trying to fix the issue but without the knowledge to do it. Matthew was great, solved the problem on the first go and ...[Read More]
Joel Posluns
nsaiki@telus.net

 

Published: February 11, 2016
The Computer Geeks are TOP NOTCH - They have taken complete charge of our website, data base, design tweaks, server operations, optimization, and web design and support. If we have a problem - We call Rich - He answers the phone - We tell him our ...[Read More]
Skip Harris
skip@newcenturycomponents.com

 

Published: February 10, 2016
The Computer Geeks have helped our Web site thrive without the payroll of a full time Web maintenance staff member. They are courteous, quick, and divide time on quarterly hours since some of our web work is short and quick. Design is done by Ann...[Read More]
Janet Brown
janet@kxaz.com

 

[Read More Testimonials Here]

Latest Website Related Articles

How to access basic and detailed system information from your Windows computer?

Published: August 22, 2016
Often times, users can find system information right on their Windows computer, if they know how to find it. If you are trying to find any of the following items, you are looking for your Basic System Information: Manufacturer Model...[Read More]

 

How can I recover a file from my emptied recycle bin?

Published: July 29, 2016
In most cases, if you delete a file off of your computer, you can easily recover it after a short period of time has passed. This is because the files you delete from your computer, are not actually gone. All deleted files are moved and stored in a h...[Read More]

 


Here are some links to related topics:
 remove malware from website,   web page maintenance,   php application development,   webmaster central,  


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