Image Size
Picture of Nick Green

Nick Green

Image Size – How big should it be?

A member of a facebook group I follow asked “What is the ideal image specs for a full width revolution slider? I need to provide this to my client so he may source images for the new site I am building for him.” A simple question that has a simple answer but some underlying information is also needed. Simple answer – “As big as possible” that’s in pixel dimensions and files size.

Source Information

Whenever I get a new client I create a folder on my computer for them and in that a folder called “source info” in there I keep the original copies of any documentation and especially images they send me during the project. I never change those images but always take copies for anything that I need to do – those source images are not to be touched. You have to remember you are dealing with a plumber or mechanic; they are often not tech savvy and on more than one occasion a client has come back to me and asked “Do you have a copy of the picture we have on the website we can’t find it anywhere.” With your source images – you can say sure I’ll send them to you. You could even try and sell them a refresh while they’re talking to you!

Size comes in two guises

With an image there are two “sizes” we need to consider – the dimensions of the image 2272 x 1704 pixels for an average digital camera to 5760 x 3840 pixels for a high definition picture. Now a high definition image is going to run into around 2.5 meg and that’s a big file and it make no sense to squash that image into the 500 x 300 pixel box on a web page. So we need to consider both sizes 1 – the physical dimensions and 2 – the files size.

Aspect ratios

The aspect ratio of an image is the ratio of the sides dimension – you remember when we used to get images printed they were 8 x 6 (inches) or 10 x 8 giving an aspect ratio of 4 to 3 (4:3) and this was the size of most computer monitors and screens for some years. Today most monitors have an aspect ratio 16:9 so when we are looking for “full width” images we need to keep that in mind. Some of the new super cinema screens have an aspect ratio of 21:9 but as few people (if any) will be viewing websites on these screens we can ignore them for the time being.

w3schools.com website states “As of today, about 97% of our visitors have a screen resolution of 1024×768 pixels or higher:”

January 2016 – site visitors 
Other high30.7%
1920 x 108018%
1366 x 76835%
1280 x 10246%
1280 x 8004%
1024 x 7683%
800 x 6000.3%
Lower3%

The majority of those screen resolutions relate to an aspect ratio 16:9 and that should be the bench mark for full width images. So for a full width image I would choose either 1920 or 1366 for the width the height will be governed by the aspect ratio of the original image and that must be maintained as the image size is reduced to prevent image distortion.

 

Image cropping

If you have a big dimension image from your client it give the opportunity to select only a portion of the image to use on the website, the change to remove extraneous bits of sky or the premises next door. But ensure you maintain the aspect ratio in what you keep so that again it doesn’t become distorted.

File Size

We have a bit of a problem here because images used to be defined for printing and it goes even further back when newspaper grey scale images were made up of “dots” so images are still often defined a 600 dpi (dots per inch). Now for a website we have to deal with the pixel density of the screen and how many pixels on the display will used to display each of the pixels defined in the image. There isn’t a real direct correlation between dpi and pixel density but if we look at how many pixels a screen uses to display a single pixel as defined in the CSS image size you find that on most screens it’s a 1 to 1 relationship (if you want more information take a look at http://dpi.lv/#24″). Add to that that most of us our eyesight isn’t that acute. So a typical 1920 x 1080 24 inch screen would have an equivalent pixel density of 92 so if we supply an image that is 600 most of the data is discarded – we shipped a 2.5M file for most of it to be thrown away.

A practical example:

A High Definition stock image from Shutterstock:

6000 x 4000 pixels (300dpi) has a file size of 7.3Mb if we use the RIOT tool (http://luci.criosweb.ro/riot/?ref=RIOT ) and choose the option to reduce the size but maintain the aspect ratio we end up with a 1920 x 1280 image with a file size of 90Kb. An image that will be perfectly acceptable for web use.

 

What about smaller images?

You need to think a little about smaller images. If you have a number of images on your site that are 500 x 300 pixels then reduce the size of the images to 500 x 300 What’s the point of sending 1500 x 900 pixel images for the browser to resize? It’s just lazy! But if you have the same image that you want to be 600 x 400 then if you use that size and resize it to 500 x 360 (keep the aspect ratio!) you only need the one larger image and the browser has to fetch it once. If the disparity between the image size get too big then it’s better to use to “correctly sized images.

Remember you can always make a big image smaller but making a small image bigger makes it, you and the website look bad.

 

Small to Big Image

Share this post