Opens in a new tab

Size your images right before you upload them

Last updated:
Nov 20 2026
/
First published:
Nov 20 2026
/

The short version

If you read nothing else, do these three things:

  1. Resize so the longest edge is 2560 pixels.
  2. Export as JPEG at about 80% quality, in sRGB.
  3. Check the file is under 1MB. Somewhere around 300 to 600KB is the sweet spot.

That’s it. Everything below is detail and step-by-step instructions.

image resize pinterest

It’s easy to use photos straight from a phone, but size costs you

A photo straight out of a camera is sized for printing. A 10MB file at 6000 pixels wide gets shrunk to a fraction of that size in the browser, but every visitor still has to download the full file first. That slows the page down, and slow pages cost you in search rankings, inquiries, and sales.

Your site probably has an image optimization plugin that compresses images automatically (I use and recommend ShortPixel). That plugin works best when it’s given a sensible file to start with. Very large files can time out, fail on upload, or get skipped, which leaves them bloated on your site indefinitely.

The settings explained

Dimensions: longest edge 2560 pixels

Rather than remembering separate numbers for landscape and portrait, resize the longest edge to 2560 pixels and let the other side fall where it lands.
  • Landscape becomes roughly 2560 x 1707
  • Portrait becomes roughly 1707 x 2560
  • Square becomes 2560 x 2560
That’s big enough for a full-width banner or hero image on a large, high-resolution screen. It’s also the limit WordPress uses. Upload anything bigger and WordPress makes its own 2560 pixel copy to show on the page, but keeps your original on the server too. You end up storing a huge file that nobody ever sees.
Not every image needs to be that big. If an image will only ever sit inside the text column of a post or page, 1600 pixels on the longest edge is plenty. For something that only shows small, like a headshot, 800 to 1200 pixels will do.

Resolution: ignore PPI

This is the one that trips everybody up, so let me explain why.
The PPI value stored in an image file is a print instruction. It tells a printer how many pixels to pack into each inch of paper. A 2560 pixel wide image at 300 PPI prints about 8.5 inches wide. The same image at 72 PPI prints about 35 inches wide and looks rough. Same file, same pixels, different size on paper.
A browser ignores that number completely. It only reads the pixel dimensions. So a 2560 pixel wide image at 72 PPI and the same image at 300 PPI have the same file size and look identical on a web page.
If a dialog asks you for PPI, put in 72 and move on. It’s a convention, and nothing on the web checks it. The number that actually matters is the pixel dimension.
One trap worth knowing. If you change the resolution field while resampling is switched on, the software adds or removes real pixels to keep the print size steady, and your file size changes a lot. In Photoshop’s Image Size dialog, uncheck Resample before you touch Resolution. This is where the “300 DPI makes bigger files” folklore comes from. It does, but only because resampling quietly rewrote the pixel count. The number itself carries no weight.
DPI or PPI? You’ll see the two used interchangeably and it doesn’t matter much here, but they aren’t the same thing. PPI is pixels per inch. DPI is ink dots per inch, which is a printer mechanism. A printer lays down many tiny dots to reproduce a single pixel, so an inkjet running at 1440 DPI isn’t printing 1440 pixels per inch. PPI also describes the physical pixel density of a screen, which is a property of your monitor and has nothing to do with your file. Most software just labels the field Resolution and sidesteps the argument entirely.

Format: JPEG

Use JPEG for photographs, which is nearly everything you shoot. Use PNG only for graphics with flat color or transparency, such as a logo. PNG on a photograph produces a file several times larger for no visible benefit.
Don’t worry about WebP or AVIF. Most image optimization plugins create those automatically after you upload the image.

Quality: around 80%

JPEG quality is a slider, and the top of it is a trap. The difference between 80% and 100% is close to invisible on screen but can triple the file size. Start at 80. If a shot has lots of subtle gradient, like a pale background or soft sky, nudge it up to 85 and check it.

Color: sRGB

Your camera and editing software may well be working in Adobe RGB or ProPhoto RGB, which are wider color spaces built for print. Browsers expect sRGB. Export in the wrong space and colors come out flat and washed out, which is a miserable outcome for food, product, or portrait photography.
Every export dialog has an sRGB option. Make sure it’s selected. Once your preset is built, you never have to think about it again.

Metadata: strip it

Camera files carry EXIF data (camera settings, lens details, and often GPS coordinates) and sometimes an embedded preview image. None of it is useful on a web page, the location data is a privacy issue if you shoot at home, and it all adds weight. Turn it off in the export dialog, but keep the copyright field.

Filenames

Not a file size thing, but worth doing while you’re already handling the file.
DSC_4471.jpg tells Google nothing, and it’s impossible for you to find if you need it again later. However, lemon-blueberry-scones-cooling-rack.jpg tells Google plenty, gives you a small free win in image search, and is easy to find in your media library. That also saves you from uploading the same image twice because you couldn’t find it the first time.
Keep filenames lowercase, use hyphens rather than spaces or underscores, and describe what’s actually in the shot. Avoid stuffing keywords in. Three or four words is fine.

Step-by-step by software instructions

Lightroom Classic

This is the best option if you work in volume, because you build a preset once and then export whole shoots in a couple of clicks.
  1. Select your images and press Ctrl/Cmd + Shift + E to open the Export dialog.
  2. File Settings: Image Format JPEG, Quality 80, Color Space sRGB.
  3. Check Limit File Size To and enter 800K if you want a hard ceiling. Lightroom adjusts the quality to stay under it. This is optional, but a decent safety net.
  4. Image Sizing: check Resize to Fit, choose Long Edge from the dropdown, and enter 2560 pixels. Set Resolution to 72 pixels per inch. Leave Don’t Enlarge checked.
  5. Output Sharpening: check Sharpen For Screen, Amount Standard. Downsizing softens an image slightly, and this puts the bite back.
  6. Metadata: set Include to Copyright Only. Check Remove Location Info.
  7. At the bottom left of the dialog, click Add to save all of this as a preset. Call it Website Upload. From now on, it’s one click.

Photoshop

Use Export As, not Save As. Save As gives you a print-oriented file with the metadata and color profile left as they were.
  1. Go to File > Export > Export As (or Alt/Option + Shift + Ctrl/Cmd + W).
  2. Set Format to JPG and Quality to 80%.
  3. Under Image Size, set the larger of the two dimensions to 2560. The other follows automatically as long as the chain link icon is on.
  4. Under Color Space, check Convert to sRGB. Leave Embed Color Profile checked.
  5. Under Metadata, choose None or Copyright and Contact Info.
  6. The estimated file size shows under the preview on the left. If it’s over 1MB, drop the quality a little.
Doing a batch in Photoshop: go to File > Scripts > Image Processor. Point it at a folder, check Save as JPEG with quality 8 (it uses a 0 to 12 scale), then check Resize to Fit and enter 2560 x 2560. Because it fits within those bounds, it handles landscape and portrait correctly in the same run. Check Convert Profile to sRGB. Run it and walk away.

Affinity (now free for Canva users)

  1. Resize first: Document > Resize Document. Make sure the chain link is engaged, then set the longer dimension to 2560 px. Set DPI to 72. Set Resample to Lanczos 3 (Bilinear is fine too).
  2. Go to File > Export and choose the JPEG tab.
  3. Set Quality to 80%.
  4. Set ICC Profile to sRGB IEC61966-2.1.
  5. Click More and uncheck Embed metadata.
  6. The estimated size appears at the bottom of the dialog.
Doing a batch in Affinity: go to File > New Batch Job. Add your files, check JPEG as the output format, and check Resize with 2560 as your bound. Set it running.

Canva

Canva gives you less control here, and most of what it does offer needs a paid plan.
  1. Set your canvas to the pixel size you actually want before you start designing. Use a custom size, 2560 px on the long edge, or 1600 px if it’s going inside a post.
  2. When you’re done, click Share > Download.
  3. Choose JPG as the file type, not PNG. PNG is Canva’s default and gives you an enormous file.
  4. Leave Size at 1x. Bumping it to 2x or 3x multiplies the dimensions and the file size.
  5. If you have Canva Pro, set Quality to around 80, or use Limit size and enter 800 KB.
On the free plan you can’t change JPEG quality, and you can’t pick a color space on any plan, so the file will often be bigger than it needs to be. If it comes out over 1MB, run it through Squoosh (below) afterward. Canva is great for graphics and text overlays, less so for exporting photography efficiently.

No software: Squoosh

If you’re on a machine without your usual tools, or if you don’t have a paid subscription to image editing software, squoosh.app is free, runs in your internet browser, and doesn’t upload your image anywhere. It all happens on your own computer.
  1. Go to squoosh.app and drag your image onto the page.
  2. On the right panel, set the format dropdown to MozJPEG.
  3. Turn on Resize, then set Width to 2560 for a landscape image or Height to 2560 for a portrait one. Leave Maintain aspect ratio checked.
  4. Set Quality to 80.
  5. The new file size and the percentage saved show at the bottom right. Drag the slider in the middle of the screen to compare before and after.
  6. Click the download button.
For a pile of images at once, bulkresizephotos.com also works well and is similarly browser-based.

A quick sense check before you upload

You don’t need to open anything to check your work. Just look at the files in your folder.
  • Windows: switch the folder to Details view, right-click the column headers, and add Dimensions and Size. Now you can see every file at a glance.
  • Mac: switch Finder to List view and add the Size column. For dimensions, select a file and press Cmd + I, or turn on the Preview pane with Cmd + Shift + P.
If you see anything over 1MB, it has slipped through and is worth redoing.

Reference table

Setting Use this Why
Longest edge 2560 px (1600 px for in-post images) Sharp on high-resolution screens, including full-width banners
Format JPEG The right format for photos. Your plugin makes WebP versions itself
Quality 80% Near identical to 100% on screen, at a fraction of the size
Color space sRGB What browsers expect. Anything else looks washed out
Resolution 72 PPI Convention only. Has zero effect on a web image
Metadata Strip it, keep copyright Dead weight, and GPS data is a privacy risk
File size Under 1MB 300 to 600KB is ideal for a full-width photo
Filename lowercase-with-hyphens.jpg A free win in image search, and easy to find later

Common questions

Will this make my photos look worse?

No. On a screen you won’t be able to tell the difference. The pixels you’re throwing away were never being displayed in the first place. If you ever need the full-resolution version, you still have your original.

Should I keep the originals?

Yes, always. Keep your full-size files or RAWs in your own archive. What you upload to the site is a copy made for one specific job. Never treat your website as your photo library.

My site already optimizes images. Why am I doing this too?

The plugin is doing a different job. It compresses and converts what it’s given, but it can’t undo the fact that a 6000 pixel file was never needed. Sizing correctly at export means the plugin starts from a good place and finishes quickly.

My image uploaded, but it looks wrong in some places. Why?

When you upload an image, WordPress makes several smaller copies of it for different parts of your site, like thumbnails and grids. A full-size camera file can be so big that the server runs out of memory partway through. The upload looks fine, but some or all of those copies never get made. The site then falls back to the full original, so the image can show up cropped wrong, stretched, or painfully slow to load. Resizing before you upload stops this happening.

What about Pinterest images?

Tall pins want a 2:3 ratio, so 1000 x 1500 is the standard. Export those separately at that size rather than trying to make one image do both jobs.

Can I just upload the original and let WordPress resize it?

WordPress will make smaller versions for display, but it keeps the original on the server as well, and some parts of a page may still call it. You end up paying for storage, and sometimes bandwidth, on a file nobody needed. I do a lot of page speed work, and oversized images are the most common cause of slow-loading pages I come across.

If you take one thing away

Build the preset once. In Lightroom or Affinity it’s a five-minute job, and it turns the whole thing from a chore into a single click at export. That’s the difference between a process that sticks and one that quietly gets skipped when you’re busy.

Written by:
Nicole Sidoti

Photo of Nicole Sidoti pushing up glasses

Hey, I’m Nic. I’m a digital design strategist on a mission to make your clever stand out. Because the world is better when we’re clever, together.

Like what you’re reading? Sign up to the Box Clever newsletter for fortnightly clever business tips, musings and related website wondery.

There's more where that came from...