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: March 21, 2019
Due to the positive experience we had with Mr. Rich Agnew project manager, I am writing this unsolicited strong recommendation on behalf of Mr. Rich Agnew who is a project manager at The Computer Geek Company. It is a genuine pleasure to write this u...[Read More]
Grant A. Killian, Ph.D.
grant@killianphd.com

 

Published: January 25, 2019
"Rich responded to my chat inquiry and answered my phone call immediately and had the move completed by the time i got back from lunch. Hands down the best experience I've had with a service provider and I won't bother looking anywhere else when my c...[Read More]
Darrin Wenstrand
darrin@tpai.com

 

Published: September 23, 2018
The Computer Geek team got my website up and running again within just a few hours. I was dead in the water and on a time constraint. Not knowing where to turn, I luckily found this great team and they solved my problem! Thank you guys!...[Read More]
Robert Alvarado
rwalvo@gmail.com

 

Published: September 21, 2018
I had an issue with my website's php code (whatever that is) ??. I also needed to update my php without crashing it. I had no idea who to turn to and feared an expensive price. Somehow, I found the computer-geek. It was fixed and updated in no time w...[Read More]
Pat Studstill
pat.studstill@gmail.com

 

Published: September 1, 2018
Great service, received a response within minutes. Problem solved next day! Prices are reasonable. Very happy! Thank you Rich....[Read More]
Shady Azer
shadya@concordeworldwide.com

 

Published: August 7, 2018
The computer geeks are gifted editors who strives to add excellence into all the work they do. They have worked with me on a pitch project for my comic book and I re-hired them to work with me on a feature film, CRY. The film genre was found footage ...[Read More]
Octavius Ra
r@orapictures.com

 

Published: July 28, 2018
Rich, you're the best! You kept this about the project, not the $$$. Your price was extremely fair. My site was down-for-the-count; and you got it back up within one hour of my initial call. I hope I don't come off racist, but it was great to hear so...[Read More]
George Busateri
gbusateri@att.net

 

Published: July 21, 2018
We have an e-commerce website that was hijacked for ransomware and we had nowhere to go, I got a recommendation from an acquaintance to check out computer-geek and we are so glad we did. I contacted Rich on a Saturday and got a response within minute...[Read More]
Richard James
richard@theherbalcoast.com

 

Published: July 1, 2018
"Thank you for your awesome & fast service at an awesome price. I will definitely be using your services again in the future if needed. A++"...[Read More]
Eric Villeneuve
eric@podblog.ca

 

Published: January 24, 2018
Over the past 1 1/2 years I have been extremely pleased with your business operations. When I need something done on my website, the management team delivers promptly ALL THE TIME! Rich and Justin never miss a beat and the keep my "beat" pounding wh...[Read More]
William Velmer
naga1@ix.netcom.com

 

[Read More Testimonials Here]

Latest Website Related Articles

Social Media and SEO (Search Engine Optimization)

Published: May 17, 2019
In 2019, we live in a digital age where social media platforms can become game-changers in improving Google rankings, promoting your business and increasing website traffic. Creating social media platforms, such as Facebook, Twitter, and Inst...[Read More]

 

What Are Doorway Pages

Published: May 10, 2019
New business owners can attract customers and generate business by creating an online presence and ranking high on Google. One of the quickest and most effective ways of increasing your rankings is to create doorway pages that will lead potenti...[Read More]

 


Here are some links to related topics:
 php application development,   have i been hacked,   fix my site,   media temple hacked,   godaddy hacked,   ideahost 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