How large should the images I upload be?
This is a great question, and one that's important to consider, since incorrect image sizing is the cause of most blurry images and slow image loading on websites.
In the past, it was good practice to upload photos of the exact size you'd be displaying -- but things have changed. Now, for most sites, it's unnecessary to use the "pixel perfect" approach. Instead upload your images with a future-proof width.
As rule of thumb, we recommend uploading your images at 2,000-2,500px wide, which will be full retina on viewing areas on screen areas up to 1000-1250px wide.
This is because, since version 4.4, WordPress has responsive images built in. This means that WordPress creates and displays smaller copies of the image according to your current theme and layouts.
WordPress Image Size FAQ
My images are larger than that. Do I have to edit them before uploading?
Do I need a plugin for responsive images?
Not in most cases. WordPress has had support for responsive images since 4.4 (December 2015), and almost all themes and plugins now leverage that. Only extremely out-of-date themes will need additional help from a plugin.
Don't bigger images make my site slow?
A qualified 'yes'. Larger images have a bigger file size, and that takes more time to transfer from the server to the user's browser. This will definitely show up in the majority of automatic tests that you run against your site.
However, the browser is responsible for downloading the best image size for its screen, so as long as you have a good range of image sizes available in the srcset, it should be able to make a good choice for both performance and display for your real users.
I'd like to understand more about this responsive technology...
If you're of a technical mind, Smashing Mag has a good jumping off point. If you just want to understand how it works, read on!
The introduction of retina screens in high end phones and laptops meant a dramatic change in how images and text were rendered. Basically how they work is to 'squish' images into a smaller space to give the appearance of more depth and sharpness. It's a 2:1 ratio.
- If the space for an image is 1000px wide, a 2000px image is best: that doubled size fits nicely. Something close to this can also work well; within 15% of target size is considered fine.
- A 1000px image in that space is no good: it'll appear pixelated! Virtually, it's like having a half-sized image in that place. As it's "stretched" across the double-density space, it makes the pixels bigger, and they'll get 'blurry'.
So the rule of thumb is to have images that are twice the size of the space that you're trying to fill.
Do I need to 'optimise' images?
Performance Foundry does a lot of that work for you behind the scenes: tools like Kraken, which run on upload; our Content Delivery Network; our on-the-fly optimisations for Publisher clients; and our special object storage all help to optimise and accelerate image delivery. If you'd like us to check your site, please email support.