My Image Host – Blog

20 Apr, 2009

Which Image Format Is The Best ?

Posted by: Admin In: Image Formats

When you are working to develop a website / blog, you sometimes need to think about the image formats you use, because this could help for saving a lot of bandwidth costs, by making the right choose.

On the web today there are 3 main image format types to choose from and all have their advantages and disadvantages, minuses and pluses. You have a choice of three different compressed image formats: GIF, JPEG or PNG. They each use different techniques to compress the image information.

GIF

GIF uses a lossless compression method which means that no quality is lost in the compression.

The uncompressed image stores its information in a linear fashion. Each line of pixels is read from left to right. An interlaced GIF image file stores the lines of the image in a different order. First lines 4, 8, 12, 16 and 20 may be read in. Then lines 2, 6, 10, 14, and 18 and so on until the whole image is recognized. With this type of interlaced GIF file, when a internet user with a slower internet connection tries to open the image file, he is able to read the image while this is loading.

The GIF format achieves its compression by removing repeated patterns within the GIF image file and keeping references to these sections in a list. Images with horizontal lines of the same color or pattern benefit most from the GIF format. A few examples are backgrunds, images containing text and other patterned images.

Creating animated images are another great advantage when using GIF. They are used in a vary numerous numbers on the internet, so you cannot noticed them. An animated GIF is basically a sequence of GIF files with some timing information included. But usually, animated GIFs can achieve large amount of size very quickly, with only a few number of frames. So, it’s better to use Macromedia Flash if you want to make animated files, instead of animated GIFs.

Another big advantage to GIF files is transparency. A color within the color table can be selected as the transparent color.

Unfortanatelly, one of the largest minuses to the GIF file format is the  inability to have a color palette larger than 256 colors.

JPEG

JPEG image format uses a lossy compression. This means that image quality is lost in the process of compressing the image. JPEG compression works by converting the image from RGB to YUV which stores information about each pixel using 3 parameters. Those 3 are : brightness, hue and saturation. Then it reduces the amount of information it stores for hue and saturation since differences are less noticeable to the human eye. JPG is best used for images that have more of a variation in colors. For example, images with gradients or photographs can handle a lower quality setting with little noticeable loss in quality. Images with text or large solid backgrounds are best left for GIF or PNG.

PNG

PNG image file format is a pretty new format in the list of available image formats and it is a “great to use” one. Its functions are almost similar to GIF advantages in many ways but even better in others. It is lossless like GIF format but supports 24 bit color (GIF supports only 8).

PNG supports alpha transparency, while GIF image format supports only a single color transparency. PNG uses various compression filters to minimize overall image size and can apply different filters on a per-line basis to achieve higher compression.

The big attraction to PNGs is its ability to do alpha transparency.

If you are not using alpha transparency or do not need more than 256 colors then you can export your imagefile as an 8-bit PNG. This could lead to a  smaller in file size than GIF with absolutely no difference in image quality.  If you do not need alpha transparency but wish to use a color palette greater than 256 colors then you should use a 24-bit PNG.

So… is there a winner?

No image file format is best in all scenarios, and no image file format have all the advantages. So, it’s always recommended to know what you want to achieve with your file, and always test your options , using various formats and compression levels to achieve the best results.

If you want to learn more on the history or other and deeper explanations of these image formats, read about GIF , JPEG , and PNG on Wikipedia, and also read about image formats, here in this post.

If you found this post interesting, buy me a coffee. Thank You.

6 Responses to "Which Image Format Is The Best ?"

1 | petergarnet

May 14th, 2009 at 12:48 pm

Avatar

The most common image format, used by most consumer and “prosumer” digital cameras.JPEGs are “lossy,” which means every time the image is edited and saved, some information is lost so the file can be compressed.

2 | Florda Camera Repair

June 29th, 2009 at 2:05 am

Avatar

.gif, .bmp , and some other formats definitely have their place and niche as well. JPG is great fr photos, but their are lots of other reasons to have the other formats as well.

3 | Abbotsford Optometry

July 14th, 2009 at 1:33 pm

Avatar

I personally like JPEG more, since it’s compatible to most softwares. The file size is relatively small.

4 | Munnar

July 17th, 2009 at 11:06 am

Avatar

The most using picture format is JPG and GIF, I like JGP format.I found some sites doesn’t allow to add GIF format pictures.

5 | massage gold coast

August 5th, 2009 at 5:10 am

Avatar

GIF does not lose quality in compression.JPEG is commonly used.No format acquires all the qualities and advantages together.

6 | Turning Winds

September 24th, 2009 at 10:05 am

Avatar

I usually use JPEG because I only know it as the most common used image format. A designer I know uses GIF and PNG image formats because he said it works best for his work. Knowing the ideas you shared I would definitely try out the other image formats and see what works best for me.

Comment Form


  • Admin: no limit at all.
  • Vamban News Blog: Posting image in forum will help us to get quicker response from other forum members. You are helping everyone by hosting their images using your webs
  • Telefoane Nokia 6303: Great guide for beginners. You can also embed an image in a forum post if the forum allows it.

About

MyImageHost.com is an internet website that provides Free Image Hosting and Sharing Services. MyImageHost.com can be used as a great way to share for free your photos, personal pictures all around the web. You can upload, share and browse your images online, anywhere, anytime, doesn’t matter if they are personal pictures, wallpapers, banners… in fact, almost every type of graphics can be stored in our servers. Read more here...

 

July 2010
M T W T F S S
« May    
 1234
567891011
12131415161718
19202122232425
262728293031