Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Web image file size

Featured Replies

Hi,

 

What do you think should be the maximum file size for images used on a website to help load faster?

 

Taking in mind there are various images you can use i.e. button images, background images, header images etc.

 

What should be the maximum JPEG size to help retain close-to original image quality (i.e. a portfolio or background image) but also be able to load fast (i.e. within 5 seconds).

 

500kb.. 250kb.. less?

 

Thanks! :friends:

I'd always recommend trying to keep images to as low a file size as possible. Every image is different and I'd suggest using your own discretion to establish the right balance between image compression and quality.

 

I always aim to keep my max website load time under 3-4seconds, even when using heavy amounts of graphics (on a 6.04Mb line, global average is 6.6Mb). A recent study I read suggested users begin to become impatient after 4seconds, yet in another study the mean load time of top ranking Google sites was found to be 9seconds (so users may be used to waiting for upto 9seconds for pages to load, I wouldn't count on it though).

 

I can't really say what file size to make your images, but 500kb is definitely too big. Here's a few ways you can keep file-size/page-load down:

 


  •  
  • Tile and repeat and images.
  • Use CSS sprites.
  • Always define height & width of your images.
  • Use image maps and hotspots.
  • Use the save for web feature in Photoshop.
  • If you don't have Photoshop, use an online image optimiser like: http://tools.dynamicdrive.com/imageoptimizer/
  • Always scale images down to the right size in an image editor, don't just make it smaller using CSS.

 

Just play around with different combinations of the above to speed up page load time, and always try to find the perfect balance between image compression & quality.

 

Hope that help ^_^

It depends on the type/content of the website as well.

 

For a fairly simple site, I try & keep the basic site under 100-150k (sometimes only 30-50k) if possible, then content images on top of that.

 

Of course, if a gallery is involved, then its up to you to decide.

 

As mentioned above, CSS sprites help a lot when it comes to increasing the efficiency of multiple images...it doesn't just come down to file size, but the number of them as well!

 

re: jpeg compression...I normally find that compressing at about 60% in photoshop is a good setting for most images....some you can go lower with & some may need higher - but not often.

It depends on the image size. For a good size image (500x500px), I'd shoot for under 100kb definitely. Basically, lower your jpg image quality setting to near the bottom, then raise it just to the point where the quality of the image becomes acceptable.

 

----

St Albans Web Design

Web Design, Development and Email Marketing

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.