Case Study: Jpeg vs BMP vs PNG vs GIF – Which Is Faster & Preserves Quality?

With different free and paid image editors, there are more than 20ish ways that you can save an image. Of those, .jpg, .bmp, .png and .gif are the most common images found on blogs and websites as a whole.

Today, we will divulge which image format:

  • Preserves the image quality
  • Is the fastest loading on blogs

I’ve always used .jpegs on this blog as I thought that they were the best way to present an image with a low loading time, Now I know that they may not be the best choice.

The idea came to me to do this post when I was reading Rarst.net’s post: 10 Things That Make Tech Blogs Unreadable and saw his comment to another user:

@MK

Totally, using badly compressed JPEG for software screenshots loks really bad. My blog is almost completely PNG. Reminds me that I really have to finish screenshoting series of post. :)

This pondered to me if I should start using a different format.. If your interested in speeding up your blog, Read on, the results will shock you (I was actually surprised as well at what I found).

The Picture:

Here is the picture I’m going to use for the test:

(Amazing Image Credit: serac)

The Test:

Converting the picture into different formats using Photoshop CS3, I discovered the following for the picture sizes. Quality remained untouched in all four pictures:

.GIF – 140KB

.JPG – 186KB

.PNG – 421KB

.BMP – 550KB

Here is the proof of the picture sizes:

(I won’t paste all of the pictures just for the sake of Dialup/Slow Connection people. Yes, You can thank me later.)

The Results:

It appears that .GIF are the best way to format your images for the web for high quality & different colour shots. Landscapes and other pictures should be formated with .GIF instead of other ways, as it will load faster on everyone’s computer.

Test #2 – Smaller Thumbnails:

For the second test, we’ll use a smaller image with a white background:

(Oh, That looks familiar :) )

The Results:

.GIF – 8.7KB

.PNG – 20.2KB

.JPG – 38.4KB

.BMP – 58.3KB

Second Batch of Proof Screenshot:

.GIF wins again.. With no quality loss. At this point, I’ve learned something as well. :D

Conclusion:

.GIF was the winner both times in my testing. I think I’ll start using them for the images in my blog posts, but not for my blog designs. Heres why – They don’t do transparency like .PNG’s do (If you look at my logo, you’ll see the transparent background behind it. I don’t believe a .GIF could do it.)

Do you have a preference for picture formats? Or, will you convert to using .GIF for all of your images after reading this case study.

Related posts:

  1. 7 Sites To Add Pictures To Your Posts
  2. Images In Blog Newsletters – Bad Idea and a Bad Time
This entry was posted in Article Readability and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Enjoy this post? Theres more to come, so click here to subscribe to our RSS Feed.

15 Comments

  1. Posted December 5, 2008 at 1:00 pm | Permalink

    Ouch… I am amazed how wrong your study is. :) I assume you had used all defaults while saving? That couldn’t be farther from real results when really trying to work with image compression.

    First pic using your gif as source, PNG, RGB, optimize 240 trials, no interlace. 119Kb. Over three times less than PNG result you got.
    http://www.rarst.net/images/compress/trees.png

    First pic using original picture as source, same settings. 421Kb. WAY better quality. Don’t know where you broke it but your GIF is very grainy.
    http://www.rarst.net/images/compress/trees2.png

    First pic, original source, JPEG, 70%. 50Kb. Almost three times less than your gif result with better quality. Way smaller than PNG result because there is ton of dithering in picture, complex to be loseless.
    http://www.rarst.net/images/compress/trees2.jpg

    Second pic, PNG, 8 bit, dithering 0, optimize 240 trials, no interlace. 7Kb. Again almost three times less than your PNG result, lower than GIF result.
    http://www.rarst.net/images/compress/logo.png

    btw GIF is (and always was) great for transparecny, it has best browser support for that unlike PNG.

    I really need to finish my screenshoting series, lol.
    My post on image formats from that series btw
    http://www.rarst.net/software/screenshoting-image-format/

    Rarst’s last blog post..Rise and fall of mobile hyperconnectivity

  2. Posted December 5, 2008 at 8:27 pm | Permalink

    Since I use Paint, I usually save it in .PNG , so the quality doesn’t drop.

    -Mike

  3. Posted December 5, 2008 at 8:42 pm | Permalink

    I think it depends on the image as well. If its an image with lots of details you don’t want the quality to drop. I mostly go with PNG format for that reason.I haven’t done extensive testing as yet , have to do some tests for quality and image size , thanks for sharing your results.

    Nishadha’s last blog post..pepperjamNETWORK is paying you to join

  4. Posted December 6, 2008 at 9:52 am | Permalink

    @ Rarst – How can a test that I conducted be wrong? It was a simple case study that I decided to do and posted my results. I looked at all four pictures at the end of the trial and found no difference in quality.

    Now, as for your testing..

    #1 – My .PNG of the trees had the following settings:
    RGB
    Interlace: None
    I didn’t know about optimization :) so I take it that I didn’t use any. Perhaps that would of altered my results.

    #2 – The GIF may be a little grainy.. I still couldn’t notice the difference when flipping through the four of them. But will the average internet user take notice to it? Very Doubtful. Comparing 421KB to 140KB.. I’d much rather take the 140KB.

    #3 – I used maximum quality for the .jpg, although it probably wasn’t necessary. 70KB?? Hmmm.. :D

    #4 – I need to optimize my .PNG’s – Lesson learned.

    Your series was a good read.. Now finish it! lol.
    See you later Rarst. Thanks for totally showing me up. :D

    @ Play – Paint is pretty useful at times, isn’t it?

    @ Nishadha – I (most likely after reading Rarst’s notes) will either stick with .GIF or .PNG for all of my photos for the posts. The reason why my .PNG’s were huge was because I didn’t “optimize” them. :)

  5. Posted December 6, 2008 at 10:58 am | Permalink

    @Brad

    Actually for photos JPG would be best. :) I stick to PNG because most of graphic materials at my blog are screenshots and such. Well, you’ve read my post.

    I’ll try to make post on compression some time next week, I probably wrote more on topic overall in comments for different blogs than actual post will be. :)

    Rarst’s last blog post..Rise and fall of mobile hyperconnectivity

  6. Posted December 6, 2008 at 2:36 pm | Permalink

    I’d definitely always use GIF. They are basically made for the Web. I really do not care for any of the other formats.

    Blog Expert’s last blog post..3 Ways to a Popular Blog

  7. Posted December 7, 2008 at 7:39 am | Permalink

    Hey Brad,

    GIF is for images with few colors, JPG works better for images with rich colors and shading. Your GIF example above has a granular sky, in a blog post it wouldn’t matter much but the JPG would clear that up. I agree though, a lot of bloggers just insert images without thinking about compression at all, page load time makes a massive impact on the usability of your site, so keeping image size down is worth the effort, after all all you need to do is save it right.

    Most image software you can preview what the saved version will look like, I just save as JPG and bring the compression down until the quality starts to go.

    Best,
    Jeremy

    SEOcialize.com – Search Engine Optimization’s last blog post..Matt Cutts Whitehat SEO Tips for Bloggers

  8. Posted December 7, 2008 at 10:32 am | Permalink

    GIF has always been considered best for the web. What I did find surprising (since I try real hard not to work with graphics of any kind lol) is 16ish other ways to save??

    Where can I find a list of these?

    Dennis Edell’s last blog post..Your Link Just Got MORE Valuable!

  9. Posted December 7, 2008 at 10:50 am | Permalink

    GIF is not perfect. It’s good for sharp images, transparency and animation but totalyl sucks for color-rich images.

    @Dennis Edell

    I am sure you can Google a lot on topic. :) If you want something simple to play with image compression try IrfanView, it comes with plugin that is decent for compressing image in all three main formats.

    Rarst’s last blog post..Host your own p2p network with YnHub

  10. Posted December 7, 2008 at 2:56 pm | Permalink

    I gotta say, I know my limitations, and proper outsourcing can be a real life (and sanity) saver. *Graphics* in any shape or form, from the “simplicity” of photo working, to whatever, it is indeed my arch nemesis. LOL

    Dennis Edell’s last blog post..Your Link Just Got MORE Valuable!

  11. Posted December 8, 2008 at 1:47 pm | Permalink

    Oh really, I shouldn’t be exporting my 16×16 icons as 19MB TIFFs?

    tek’s last blog post..Nano 4G available, iPod Touch revamped, iTunes 8, Apple fanboys drool everywhere

  12. Posted December 8, 2008 at 3:20 pm | Permalink

    @ Tek – lol. Probably not the best idea :)

  13. Nuke Fizzix
    Posted March 24, 2009 at 2:17 pm | Permalink

    I thought that GIF was known for quality loss. I do screenies on BF1942 and I find that BMP and PNG don’t lose any quality. I have saved images as GIF and their colors all got messd up. I try to save all my screenshots as JPG because it is a widely accepted image format and compresses to very small sizes. The only problem with JPG is that it gets grainy. I don’t know what to do.

  14. tristan
    Posted August 12, 2009 at 2:37 pm | Permalink

    Yes, this test is quite out of wack. It does not even take into account the differences of PNG8 vs PNG24, which are not to be ignored. PNG8 is far better than GIF in file size and supports the same amount of colors and (binary) transparency. PNG24 supports millions more colors and in general will have a much larger file size because of it.

  15. Chris
    Posted November 18, 2009 at 6:18 am | Permalink

    GIFs only support 256 colours compared to JPEG’s 16.7m, so the file size is likely to be smaller in many instances at a cost of quality – you can’t accurately represent a photo as a GIF as 8-bit colour simply isn’t enough.

    As an analogy, we could all compress our sentences to a single word which would enable us to complete our conversations with maximum expedience, but obviously there’d be no way we could actually convey all the information necessary to make ourselves understood!

    It’s a case of horses for courses, where image formats are concerned.

4 Trackbacks

  1. [...] I figured out how to optimize .PNG’s – The “Optimized” .PNG was around 8KB smaller than the .GIF version – So much for my study. [...]

  2. By Herramientas para optimizar tus imágenes on July 13, 2009 at 11:56 am

    [...] un interesante caso de estudio que realizó una comparación entre el formato JPEG vrs BMP vrs PNG vrs GIF una de las conclusiones apunta a favor del formato .GIF y en segundo lugar el formato .PNG pero [...]

  3. By Nicoman » Formatos de imagenes para la web on July 14, 2009 at 5:01 am

    [...] por ahi encontré una comparacion entre los formatos JPEG, BMP, PNG y GIF de cara a su utilización en un sitio web. Parece que el viejo GIF sigue dando sorpresas, pero para [...]

  4. [...] un interesante caso de estudio que realizó una comparación entre el formato JPEG vrs BMP vrs PNG vrs GIF una de las conclusiones apunta a favor del formato .GIF y en segundo lugar el formato .PNG pero [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled

686 RSS Subscribers

Subscribe today to recieve any updates on this blog for free!

You'll also receive, "The Blog Manual" free of charge for being a subscriber which you can download at the bottom of each post.

 


Blog Advertisers

Recent Comments

  • Jonny said: As usual you are right Brad I think I should pay more attention to headlines looking back at some...

  • SEO said: Exactly proper marketing can get an article attention, one of proper marketing encompasses the...

  • Ganesh Iyer said: Apart from having an interesting title, the content of the article should be absorbing. This...

  • George Angus said: Brad, Great stuff. Looking forward to the next in the series. Headlines (titles) are...

  • LittleWebThings said: Many of these entries have been useful to me over the years! Thanks for creating this...

  • About The Author

    Brad Ney

    I am a Wordpress enthusiast, part-time website designer, and enjoy using the latest technology via the internet for website promotion.I enjoy writing about startup websites, XHTML, CSS, Wordpress based on what I've learned in the industry.

    Reader Poll

    • Are you a...

      View Results

      Loading ... Loading ...