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:

My sites were hacked on July 22nd and Bluehost shu
My sites were hacked on July 22nd and Bluehost shut them all down till I could get them cleaned. It couldn't happen at a worse time. I didn't have the time, money or patience to deal with any of it, so I let them sit dead for 6 weeks. I wasn't happy with the company Bluehost recommended to fix them, so I spent that time looking around for other solutions. That brought me to computer-geek. I spent time looking through everything and must have read nearly 100 testimonials. I was sold, but still didn't feel like dealing with my sites. When I finally contacted CG, I worked with Rich Agnew to get everything going. Loved working with him. He was patient, explained things well and within minutes of sending him a startup fee he was working on the sites. Within 24 hours everything was back up and running again. 25 years ago I walked away from computer consulting. I know what a chore it can be both fixing things and working with customers to get that done. Might be why I just let things sit for 6 weeks, didn't feel like reliving any of that. Working with Rich got rid of all the hesitancy I had. If something ever goes wrong again, the only thing that would stop me from calling CG immediately would be cash flow. I'll call them ASAP once that is resolved. If my sites ever progress from hobby sites to money makers, I'll be contacting CG to see what else they can do. I highly recommend anyone reading this that needs help to do the same.
Ken Gortowski
Published:
Ken Gortowski
keng@kengortowski.com
I highly recommend Computer Geek. They responded q
I highly recommend Computer Geek. They responded quickly and are very easy to work with. Rich really took the time to listen and then gave me a quote before the work was started. I will use them again and again.
Cathy Graziano
Published:
Cathy Graziano
cathy@nationaldancefoundation.org
Anyone running a small business these days knows t
Anyone running a small business these days knows that Digital marketing is the back bone of any service related business and it's something we've struggled with for years before connecting with Rich. The Computer Geek Web Development & Hosting have helped us gain a competitive edge in our field and Rich has been so easy to deal with and he really knows what he's doing. Even in a tough year like COVID-19 our sales are up from last year. We would like to think Rich And his team for implementing all the changes that we needed for our website with such successful results.
Grant Dainty
Published:
Grant Dainty
grant@twintechheating.ca
Richard (The Computer Geek) has been extremely pro
Richard (The Computer Geek) has been extremely prompt with his replies, honest, very cordial, and most importantly, gets the job done quickly and professionally - a dream come true. He fixed my website in a day and I am so grateful. I've dealt with developers who charge an arm and a leg, but his fees are very fair. I've felt very comfortable working with Richard, and highly recommend him without any reservation.
Cynthia Yi
Published:
Cynthia Yi
cyi320@yahoo.com
Small town, small cemetery with a board of volunte
Small town, small cemetery with a board of volunteers that are not computer savvy! Computer-Geek and Rich Agnew got our website cleaned up, updated and working fantastically! Fixed website up in a very short time, was extremely reasonable, and was very pleasant to deal with! Highly recommend !!!
Jane Neufeld
Published:
Jane Neufeld
delawarecemetery@gmail.com
What a relief to know that there is a trusted reso
What a relief to know that there is a trusted resource to get your website back up and running in an emergency. The Computer Geeks quickly diagnosed and corrected the problem and had our website up and running in short order. I highly recommend The Computer Geek Company and would not hesitate to use their services in the future.
Donna Roth
Published:
Donna Roth
donna.vvinyl@gmail.com
I've built and managed my websites for several yea
I've built and managed my websites for several years but recently reached a point where my website was running so slowly that I had no idea where to turn. I discovered the Computer Geek website and took a chance of trusting the other great reviews there. I met Rich through the chat service on the site and he was very responsive. Within an hour of him having access to my site, he was working on the problem. He improved my site speed and identified the next steps I would need to improve the speed substantially. I highly recommend this service! Quick response, knowledgeable, reasonable rates, and available on an as-needed basis (no contract). I now have a "computer guy"! Thanks, Rich!
Shirley Alarie
Published:
Shirley Alarie
shirleyalarie@gmail.com
Very fast, professional service with excellent com
Very fast, professional service with excellent communication throughout. Service exceeded my expectation, and the end result was just what I needed.
Oliver Harris
Published:
Oliver Harris
oliharris801@hotmail.com
My large Drupal 8 site was down for 5 days. I cont
My large Drupal 8 site was down for 5 days. I contacted Rich on a Friday evening at 2200 hrs CET, provided the access codes and less than 30 minutes later it was fixed. I have been online since 2003 and I have never seen work like this, Rich is a true Pro and I will definitely recommend Computer Geeks to all friends and colleagues. Many thanks, Jeremy - UK
Jeremy Insole
Published:
Jeremy Insole
jeremy@interyachtcharter.com
We were in a pinch and needed a new website built
We were in a pinch and needed a new website built fast. We stumbled upon The Computer Geek and reached out to them for a consultation. After the first call we felt it was a no brainier to go with them to build our site. The professionalism was second to none. Rich and his team built our new site with lightning speed and provided exceptional communication. We love the new website! Thank you for your professionalism, amazing communication, and always going above and beyond for us. We look forward to working with you in the future.
Keith BERARD
Published:
Keith BERARD
keith.berard@gmail.com
[Read More Testimonials Here]

Latest Website Related Articles

Admin Seeing Submit for Review instead of Publish on Wordpress

Published: September 6, 2020
Occasionally WordPress users report not being able to publish new content, even as admins. Instead of seeing the "Publish" button, the "Submit for Review" button appears instead. Luckily, there are a few ways to fix this, though not every solut...[Read More]

 

PHP Programming Language Discontinued

Published: August 25, 2020
Starting in November, Microsoft will be ending support for the programming language PHP. According to Microsoft Program Manager Dale Hirt, support for PHP 7.2 ends in November, and they will only be providing security fix support for PHP 7.3. ...[Read More]

 


Here are some links to related topics:
 oscommerce support,   php engineer,   skuvault pro,   network solutions hacked,   spree commerce hacked,   fatcow hacked,  


Site Secured By The Website Guardian