Image compression is found in every native media format. However, the difference between GIF, PNG, and JPEG is how the information is compressed and display on-screen.

There are so many tips for composing great image media published on the web, and yet many designers still do not understand some of the fundamentals.

In this guide I’d like to share a few ideas for proper JPEG compression. You want to optimize your images to decrease webpage load times while also holding a decent level of quality. It’s all about finding a balance between file sizes and screen depiction. There is no perfect solution for designers to follow.

It takes some initial practice, but once you understand JPEG compression it becomes much easier developing websites in the future.

Recommended Reading: Tips & Best Practices for Web Optimization

Avoid saving at 100%

You should almost never save your JPEG images at 100% quality. This will not produce the most possible “optimized” image. It actually calculates through an optimization limit formula which increases your file sizes exorbitantly.

Even compared to 90% or 95% quality you’ll see a significant drop in file size.

Most times you’ll be recommended to save images much lower than 90% quality. If you open the Save for Web dialog box in Photoshop you’ll notice they offer preset values you can choose from.

I added the possible JPEG values below – notice the inherent naming conventions.

  • Low – 10%
  • Medium – 30%
  • High – 60%
  • Very High – 80%
  • Maximum – 100%

Even in Adobe Photoshop 60% image quality is considered ‘high’. Many web developers will vouch between 50% – 70% is a safe range to stick with.

How low is too low?

The values you choose for optimization are completely dependent on the project at hand. You’ll have to consider which types of graphics will output the highest file sizes – these are the ones which really need compression.

I would argue that below 30% you’re really chopping off fundamental picture quality. Other designers will swear 50% as a “limit” to decreasing the optimal value.

But the best advice here is to just try out different settings and see what looks best! You can’t go wrong with a few test studies optimizing JPEG images for the web.

Compression options

We should first clarify the two terms ‘compression’ and ‘quality’ which are the inverse of each other.

This means if you save a JPEG at 40% compression you’ll get 60% quality (compared to a maximum of 100% quality with no compression).

These are the most basic options to utilize – and they should be enough when saving for the web. General users do not get into much deeper customizations.

Subsampling gets into more complicated matters where you’re converting RGB images into YCbCr (Luminance, Chroma Blue, Chroma Red).

color guide

The luminance or brightness setting is always held at the highest possible value in JPEG compression. With this brightness value on a separate channel it’s easier to optimize the individual color values of Red and Blue.

This is also known as chroma subsampling. Designers interested in getting their hands dirty will love to read a bit more about this compression algorithm.

Check out this great blog post on chroma sampling specifically focused on JPEG images.

chroma sampling

As an interesting side note Adobe Photoshop does not always utilize subsampling for compression. Any images saved via the “Save for Web” dialog will only use chroma subsampling below a 50% quality value.

Differing web media

The web is also full of different kinds of image media. You can have photographs, icons, buttons, badges, and tons of other graphics. But it’s notable that comparing quality between a button and a photograph just doesn’t make sense.

When using photographs or detailed images consider linking to a separate lesser-compressed JPEG file. Then you can setup thumbnails on your site with a higher compression ratio and much smaller file sizes.

The only downside is that you’ll need to provide two sets of images for a media gallery. Take notice of the many different graphics you have sewn throughout a website and consider optimization techniques for each one individually.

Using Compression Tool

You want may have organized the image files that’s easy to rummage through on your site. You may also host their photos on a Cloud service such as Amazon S3, Google Cloud Storage, or through a CDN that would make faster delivery for the image. Still, you’ll want to use some compression tool to reduce image sizes. Any extra bytes you can shave off each file’s size are crucial. And here are some of the tools you want to check out:

TinyJPG

TinyJPG is a browser-based web app where you can upload an image and it all unnecessary extra bytes to optimize file size. It’s 100% lossless meaning the image quality will not degrade at all. You can upload upto 20 images with 5Mb all at once.

If you’re using WordPress for your site. You can use its official plugin, Compress JPEG & PNG images. This plugin also connects to its sister site TinyPNG that would allow you to optimize images with PNG format.

IrfanView

This free software for Windows allows you to view and optimize any set of large images. I especially like this software because it supports batch conversion from images in multiple directories. You can apply the same functions over hundreds of JPEG images automatically.

What’s even better is the plugin support from 3rd party developers. One such example is RIOT (Radical Image Optimization Tool). This plugin works for other similar open-source graphics editors such as GIMP.

It offers a dual-image view where you can manually adjust compression parameters for each of your images.

Screenshot of RIOT plugin

Software support is wonderful and the RIOT features are very easy to use. Along with image compression you also have access to removing additional metadata such as EXIF and Adobe XMP. These extra bits of data can only add onto your total filesize and they are rarely needed.

ImageOptim for Mac

If you are running OS X and need a powerful compression app then look no further. ImageOptim is a powerful tool to compress images for the web – at times even better than Photoshop.

The whole application supports drag-and-drop functionality so it’s easy to optimize large sets of images. You can similarly run commands right from within the Terminal and setup shell scripts.

ImageOptim App for Mac OS X

Conclusion

Even though our modern Internet connection speeds are increasing with 4G and the upcoming 5G, we’ll need to reduce the size of our webpages. Every byte will eventually cost some fortune to your users, and in some countries this cost may be quite significant.

In this article, we’ve seen how to to compress images to reduce image size on the webpage. Compressing image used to be tricky since you need to find the proper balance between quality and substance. There wasn’t also that many tools to choose from, but now the options are more advanced and easy to use.

If you have similar tricks or ideas on JPEG compression please share with us in the post discussion area below.

134 comments

  1. An interesting discussion is worth comment. I do think that you need to write
    more on this issue, it might not be a taboo matter but usually folks don’t speak about these subjects.
    To the next! Cheers!!

  2. Does your blog have a contact page? I’m having trouble locating it but, I’d like to shoot you an e-mail.
    I’ve got some recommendations for your blog
    you might be interested in hearing. Either way, great site and
    I look forward to seeing it improve over time.

  3. Today, while I was at work, my cousin stole my apple ipad and
    tested to see if it can survive a 40 foot drop, just so she can be a youtube sensation. My
    iPad is now destroyed and she has 83 views. I know this
    is totally off topic but I had to share it with someone!

  4. Every weekend i used to pay a visit this site, for the reason that i
    want enjoyment, for the reason that this this website conations actually nice funny data too.

  5. With havin so much written content do you ever run into any
    issues of plagorism or copyright violation? My blog has
    a lot of exclusive content I’ve either created myself
    or outsourced but it appears a lot of it is popping it up all over the internet without my agreement.
    Do you know any solutions to help reduce content from being ripped off?

    I’d definitely appreciate it.

  6. It is perfect time to make some plans for the future and it’s time to be happy.

    I have read this post and if I could I desire to suggest you
    some interesting things or suggestions. Maybe you can write next articles referring to this article.
    I desire to read more things about it!

  7. Hey there, You’ve done an excellent job. I will definitely digg it and personally recommend to my friends.
    I am sure they’ll be benefited from this website.

  8. Fascinating blog! Is your theme custom made
    or did you download it from somewhere? A theme like yours with a few simple adjustements
    would really make my blog shine. Please let me know where you got your theme.
    Thanks a lot

  9. Ahaa, its fastidious dialogue regarding this piece of writing at this place at this blog, I have read all that, so
    at this time me also commenting here.

  10. Attractive section of content. I just stumbled upon your web site and in accession capital to assert that I acquire
    in fact enjoyed account your blog posts. Anyway I will be subscribing to your feeds and
    even I achievement you access consistently rapidly.

  11. I don’t even understand how I finished up here, however I assumed this put up
    was once good. I don’t understand who you’re but definitely you’re going to a well-known blogger
    in the event you are not already. Cheers!

  12. Aw, this was a very good post. Taking a few minutes and actual effort to generate a really good article… but
    what can I say… I procrastinate a whole lot and don’t seem to get nearly anything done.

  13. You can definitely see your enthusiasm within the work you write.
    The arena hopes for more passionate writers like you who aren’t
    afraid to mention how they believe. All the time follow your heart.

  14. Heya! I’m at work surfing around your blog from my
    new iphone 3gs! Just wanted to say I love reading through your blog and look forward to all your
    posts! Carry on the fantastic work!

  15. You really make it seem so easy with your presentation but I find this topic to be
    really something which I think I would never understand.
    It seems too complicated and extremely broad for
    me. I’m looking forward for your next post, I’ll try
    to get the hang of it!

  16. I’ve been exploring for a little for any high-quality articles or
    blog posts in this sort of area . Exploring in Yahoo I at last stumbled upon this website.
    Reading this information So i’m happy to show that I’ve
    an incredibly good uncanny feeling I discovered just
    what I needed. I such a lot undoubtedly will make certain to don?t put out of
    your mind this website and give it a glance regularly.

  17. My partner and I absolutely love your blog and find a lot of your post’s to be what
    precisely I’m looking for. can you offer guest writers to write content
    to suit your needs? I wouldn’t mind composing a
    post or elaborating on a number of the subjects you write related to here.
    Again, awesome web site!

  18. Hey! This is my first visit to your blog! We are a group of
    volunteers and starting a new initiative in a community in the same
    niche. Your blog provided us useful information to work on. You have
    done a extraordinary job!

  19. Hmm it looks like your website ate my first comment (it was
    super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still new to everything.
    Do you have any helpful hints for rookie blog writers? I’d really
    appreciate it.

  20. It’s a shame you don’t have a donate button! I’d certainly donate to this superb blog!
    I suppose for now i’ll settle for book-marking and
    adding your RSS feed to my Google account. I look
    forward to brand new updates and will share this website with my Facebook group.
    Chat soon!

  21. I do not even know the way I stopped up here, but I thought this submit was once great.

    I do not understand who you might be but certainly you are going to a well-known blogger if you aren’t already.
    Cheers!

  22. It’s awesome to go to see this site and reading the views of all friends about this piece
    of writing, while I am also zealous of getting experience.

  23. Attractive section of content. I simply stumbled upon your web site and
    in accession capital to claim that I acquire actually loved account your blog posts.
    Any way I’ll be subscribing on your augment or
    even I success you access consistently quickly.

  24. Hello there! I know this is kinda off topic however , I’d figured I’d ask.

    Would you be interested in exchanging links or maybe guest
    writing a blog post or vice-versa? My site addresses a lot of the same subjects as
    yours and I think we could greatly benefit from each other.
    If you’re interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Excellent blog by
    the way!

  25. Great blog right here! Additionally your site loads up
    very fast! What host are you the use of? Can I am getting your affiliate hyperlink on your host?
    I want my web site loaded up as fast as yours lol

  26. Hi! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in trading links or maybe guest writing a
    blog post or vice-versa? My site covers a lot of the same topics as yours
    and I believe we could greatly benefit from each other.
    If you might be interested feel free to shoot me an email.
    I look forward to hearing from you! Terrific blog by the
    way!

  27. Greate post. Keep posting such kind of info on your page.
    Im really impressed by your site.
    Hi there, You’ve done a great job. I’ll definitely digg it and in my
    opinion recommend to my friends. I am confident they
    will be benefited from this site.

  28. Howdy would you mind stating which blog platform you’re working with?

    I’m planning to start my own blog soon but I’m having
    a hard time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style seems different then most blogs and I’m looking for something unique.
    P.S My apologies for getting off-topic but I
    had to ask!

  29. Nice post. I was checking constantly this blog and I’m impressed!
    Very helpful info particularly the last part 🙂 I care for such
    info much. I was looking for this certain info for a very long time.

    Thank you and good luck.

  30. Pretty nice post. I just stumbled upon your
    blog and wished to say that I have truly enjoyed browsing your blog posts.
    After all I’ll be subscribing to your rss feed and I
    hope you write again very soon!

  31. Howdy! I realize this is kind of off-topic but I had to ask.

    Does managing a well-established website such as yours take a large amount of work?
    I am completely new to operating a blog however I do write in my diary everyday.
    I’d like to start a blog so I will be able to share my own experience and feelings online.
    Please let me know if you have any recommendations or tips
    for brand new aspiring bloggers. Thankyou!

  32. Thanks for the good writeup. It in truth was a amusement account it.
    Look complex to far added agreeable from you! However, how could we communicate?

  33. Hello there, I found your blog by way of Google while looking for a related topic, your website got here
    up, it seems to be great. I have bookmarked it
    in my google bookmarks.
    Hi there, simply was aware of your blog via Google, and found
    that it is really informative. I’m gonna be careful for brussels.
    I will be grateful should you proceed this in future.
    Many other people can be benefited from your writing.
    Cheers!

  34. We stumbled over here from a different web address and thought I may as well check things out.
    I like what I see so now i’m following you. Look forward to looking at your web page again.

  35. I know this if off topic but I’m looking into starting
    my own blog and was curious what all is needed to get setup?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet smart so I’m not 100% sure.

    Any suggestions or advice would be greatly appreciated.

    Thank you

  36. I was excited to discover this page. I need to to thank you for ones time due to this fantastic read!!

    I definitely enjoyed every bit of it and i also have you book marked to look at new things in your website.

  37. It’s really a great and helpful piece of information. I am happy that you shared
    this helpful info with us. Please stay us up to date like this.

    Thanks for sharing.

  38. Just desire to say your article is as astounding.
    The clarity in your post is just excellent and i can assume
    you are an expert on this subject. Fine with your
    permission allow me to grab your RSS feed to keep updated with forthcoming
    post. Thanks a million and please continue the gratifying work.

  39. Excellent web site you have got here.. It’s difficult to find excellent writing
    like yours nowadays. I honestly appreciate individuals
    like you! Take care!!

  40. Please let me know if you’re looking for a writer for your
    site. You have some really good posts and I think I would be
    a good asset. If you ever want to take some of the load off, I’d
    really like to write some content for your blog in exchange
    for a link back to mine. Please blast me an e-mail if interested.
    Many thanks!

  41. Hello there I am so happy I found your webpage,
    I really found you by mistake, while I was looking on Digg for something else, Anyhow
    I am here now and would just like to say thanks for a remarkable post and a all round
    exciting blog (I also love the theme/design), I don’t have time to read it all at the moment but I have bookmarked it and also
    added in your RSS feeds, so when I have time I will be back
    to read much more, Please do keep up the great jo.

  42. After I initially commented I appear to have clicked the -Notify me when new comments are added-
    checkbox and from now on each time a comment is added I receive 4 emails with
    the exact same comment. There has to be a means you can remove me from that service?
    Kudos!

  43. Hi! I could have sworn I’ve been to this blog before but
    after browsing through some of the post I realized it’s new to me.
    Nonetheless, I’m definitely glad I found it and I’ll be bookmarking and
    checking back often!

  44. With havin so much written content do you ever run into any issues of plagorism or
    copyright infringement? My website has a lot of
    completely unique content I’ve either authored myself or outsourced but it seems a lot of it is
    popping it up all over the internet without my permission.
    Do you know any techniques to help protect against content from being ripped off?
    I’d certainly appreciate it.

  45. Hello everyone, it’s my first go to see at this web page, and piece of
    writing is really fruitful in favor of me, keep up posting such articles or reviews.

  46. For the reason that the admin of this web site is working, no
    question very rapidly it will be famous, due to its feature contents.

  47. Howdy! This blog post couldn’t be written much better!

    Looking at this post reminds me of my previous roommate!
    He continually kept talking about this. I most certainly will forward this article to him.
    Pretty sure he’s going to have a great read. Thanks for sharing!

  48. Does your blog have a contact page? I’m having a
    tough time locating it but, I’d like to send you an e-mail.
    I’ve got some ideas for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing it develop over time.

  49. What’s up everybody, here every person is sharing such familiarity, so
    it’s good to read this weblog, and I used to
    pay a visit this web site everyday.

  50. Thanks on your marvelous posting! I definitely enjoyed reading
    it, you can be a great author.I will make certain to bookmark your blog and
    may come back very soon. I want to encourage that you continue your great posts, have a
    nice weekend!

  51. I’m not that much of a internet reader to be honest but your sites
    really nice, keep it up! I’ll go ahead and bookmark your
    site to come back down the road. Cheers

  52. My brother recommended I might like this web site. He was entirely
    right. This post truly made my day. You cann’t imagine just how much time I
    had spent for this info! Thanks!

  53. I don’t even understand how I finished up here, but I assumed this submit
    used to be good. I do not know who you’re but certainly you’re going to
    a well-known blogger should you are not already. Cheers!

  54. It’s truly a great and helpful piece of info. I am satisfied that you just shared this
    useful information with us. Please stay us up to date
    like this. Thank you for sharing.

  55. Wonderful goods from you, man. I have understand your stuff previous to and you are just too wonderful.
    I actually like what you’ve acquired here, really like what you’re stating and the
    way in which you say it. You make it enjoyable and you still
    care for to keep it wise. I can not wait to read much more
    from you. This is really a terrific website.

  56. My partner and I stumbled over here by a different page and thought I
    might check things out. I like what I see so now i am following you.

    Look forward to checking out your web page for a second time.

  57. It’s appropriate time to make some plans for the long run and it is time to be
    happy. I’ve learn this publish and if I may I want to recommend you
    some fascinating issues or tips. Maybe you could
    write subsequent articles relating to this article.
    I want to learn even more things about it!

  58. Howdy! I know this is kinda off topic however , I’d figured
    I’d ask. Would you be interested in trading links or maybe guest authoring
    a blog article or vice-versa? My blog covers a lot of the same topics
    as yours and I think we could greatly benefit from each other.

    If you are interested feel free to shoot me an email.
    I look forward to hearing from you! Terrific blog by the way!

  59. Heya! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no
    backup. Do you have any solutions to protect against hackers?

    Take a look at my blog; agen poker pulsa

  60. Terrific post however , I was wanting to know if you could write a
    litte more on this subject? I’d be very thankful if you could
    elaborate a little bit more. Many thanks!

  61. Today, while I was at work, my cousin stole my iPad and tested to see if it can survive a 40 foot drop, just so she can be a youtube
    sensation. My apple ipad is now broken and she has 83 views.

    I know this is completely off topic but I had to share it with
    someone!

  62. Admiring the dedication you put into your blog and detailed information you provide.
    It’s great to come across a blog every once in a while that isn’t
    the same outdated rehashed information. Wonderful read!
    I’ve bookmarked your site and I’m adding your RSS feeds to my Google
    account.

  63. Hi there, this weekend is pleasant designed for me, for the reason that this
    moment i am reading this wonderful informative piece of writing
    here at my residence.

  64. Spot on with this write-up, I absolutely believe this
    amazing site needs far more attention. I’ll probably be returning to read through
    more, thanks for the advice!

  65. Hey! I know this is somewhat off-topic but I had to ask.
    Does operating a well-established blog such as yours take
    a large amount of work? I’m brand new to operating a
    blog but I do write in my journal every day. I’d like to start a blog so
    I can share my experience and views online. Please let me know if you have any kind of ideas or tips
    for brand new aspiring bloggers. Thankyou!

Leave a Reply

Your email address will not be published.