Image optimization plugins and paid image services are useful, but many sites do not need them. If every image is resized and compressed before upload, the site starts fast and stays fast, with no monthly fee and no extra processing on your server. This guide sets out a simple bulk workflow that works for both WordPress and Next.js sites.

Why optimize before upload

Uploading a 5 MB camera photo and relying on the platform to fix it has hidden costs:

ApproachStorageServer workRisk
Upload originals, optimize with a pluginLarge originals kept foreverProcessing on every upload or requestPlugin limits, fees, misconfiguration
Optimize first, upload finished filesSmall files onlyNoneVery low

WordPress keeps the original upload plus several resized copies of every image. Starting from a 5 MB original multiplies storage and backup size. Starting from a 200 KB WebP keeps everything lean.

Step 1: decide your sizes

Most sites need only a few image sizes. Decide them once and use them for everything:

Image typeWidthShape
Full-width hero1920 to 2400 px16:9 or wider
Article and content images1600 pxKeep original shape
Featured image and social preview1200 x 675 px16:9
Product photos1600 to 2000 px1:1 or 4:5
Thumbnails in grids800 pxMatch the grid

A 1600 pixel wide image looks sharp in a typical content column on high density screens and is still a modest file as WebP.

Step 2: resize and convert in bulk

  1. Collect every image for a post, a page or your whole media library into one folder.
  2. Open the bulk image compressor and add them all at once.
  3. Keep the default of 1600 pixels wide and WebP at quality 80, or adjust for the image type.
  4. Turn on SEO file names to convert names like IMG_4821.JPG into lowercase, hyphenated names.
  5. Click Download all to get a single ZIP.

Images smaller than the target width are never enlarged, so you can safely process a mixed folder. Everything runs in your browser, so even a large batch of client photos never leaves your computer.

Bulk resize and convert to WebP1600 px wide, free, runs in your browserOpen tool

For featured images that need an exact 16:9 crop, use the blog featured image resizer, which outputs 1200 x 675 WebP files under 150 KB.

Step 3: upload to WordPress

WordPress accepts WebP uploads natively. Upload the optimized files through Media, then Add New, or directly in the block editor.

A few settings keep the result lean:

  • Big image threshold. WordPress scales images larger than 2560 pixels and keeps the original. Since your files are already 1600 pixels, this never triggers.
  • Generated sizes. WordPress creates several smaller copies for responsive images. Because your source is already compressed, these copies are small too, and WordPress adds srcset automatically.
  • Unused sizes. Some themes register many extra sizes. If you have dozens of copies per image, check your theme settings and remove the sizes it does not use.

Fill in the alt text for every image as you upload it. Doing it at this stage is far quicker than going back later.

Step 4: use the files in Next.js

Next.js offers two good options for pre-optimized images.

With the Image component. Place files in the public folder and use next/image. It adds lazy loading, sizing and srcset for you. Because your sources are already small WebP files, any on-demand optimization has less work to do, and it uses fewer resources on hosting platforms that limit or charge for image optimization.

import Image from 'next/image'

export default function Hero() {
  return <Image src="/images/studio-portrait.webp" width={1600} height={900} alt="Studio portrait session" priority />
}

With a static export. If you export a static site with output: 'export', the default image optimizer is not available. Pre-optimized WebP files are then the simplest approach: set images: { unoptimized: true } in your config and serve your prepared files directly. They are already the right size and format.

Use the priority prop only on the main image at the top of the page, so it loads first and helps Largest Contentful Paint.

Step 5: check the result

After publishing, run a key page through PageSpeed Insights. The "Properly size images" and "Serve images in next-gen formats" opportunities should be gone or much smaller.

CheckTarget
Total image weight on a typical articleUnder 1 MB
Largest single imageUnder 200 KB
FormatWebP (or AVIF)
Alt textPresent on every meaningful image

Keeping old uploads in check

Optimizing new images is the easy part. Older media libraries often contain hundreds of oversized files uploaded before anyone paid attention to size. Start with the pages that get the most traffic. Download their images, run them through the bulk compressor, and replace the files with the same names so existing links keep working. Then work through the rest of the library over time.

Choosing a WordPress image plugin

If you cannot optimise every image before upload, a plugin can handle it on the server. They differ in where the work happens and what it costs.

Plugin typeHow it worksProsCons
Local processingCompresses on your own serverNo external serviceUses server resources, limited formats on cheap hosting
Cloud compressionSends images to a service, returns smaller filesGood results, WebP and AVIF supportMonthly limits or fees
Image CDNServes optimised versions from a separate networkAutomatic resizing and formatsOngoing cost, extra dependency

A plugin works best alongside a good upload habit, not instead of one. Even with a plugin, resizing photos before upload keeps your media library smaller, speeds up backups and reduces the plugin's workload.

Settings to check in WordPress

WordPress creates several resized copies of every upload. Reviewing these settings stops the library from growing faster than it needs to.

  • Media settings. Under Settings, Media, the thumbnail, medium and large sizes control the copies WordPress makes. Match "large" to your content width.
  • Big image threshold. WordPress scales uploads larger than 2560 pixels down automatically and keeps the original. Uploading at your target size avoids storing two large files.
  • Theme image sizes. Themes often register extra sizes. Some are never used, but each still creates a file for every upload.
  • Lazy loading. WordPress adds lazy loading to images automatically. Make sure the first image on each page is excluded.

Next.js image configuration

The Next.js Image component handles resizing and format conversion, but only within the limits of its configuration.

SettingPurposeTip
deviceSizesWidths generated for full-width imagesKeep the list short to reduce cache size
imageSizesWidths for smaller, fixed-size imagesMatch your thumbnail and card sizes
formatsOutput formatsAdd AVIF if your server can handle the extra processing
remotePatternsAllowed external image sourcesList only the domains you use
minimumCacheTTLHow long optimised images are cachedRaise it for images that rarely change

For static exports, the default image optimiser is not available, so images must be prepared in advance or served through an external loader. In that case, bulk optimising before build is the main way to control image weight.

Organising files for bulk work

Bulk optimisation is much easier when files are organised. A simple structure helps:

  1. An originals folder for full quality source images, never uploaded.
  2. An export folder for web-ready files, named descriptively.
  3. Subfolders by month, project or product category.

Descriptive names such as "blue-linen-shirt-front.webp" help image search, and they make it easier to find and replace a file later. The bulk image compressor keeps your file names when it converts, so naming once at the start carries through.

Measuring the savings

Before you start, record the total size of your uploads folder and the image weight of a few key pages. After optimising, measure again.

MeasureWhere to find it
Media library sizeHosting file manager or an FTP client
Page image weightBrowser developer tools, Network panel, filtered to images
LCPPageSpeed Insights
Backup sizeYour backup plugin or host

Seeing the before and after numbers makes it easier to justify the routine to a team or client, and it shows which pages still need attention. For photos you convert one at a time, the PNG to WebP converter is a quick option.

Bulk optimising a site that already exists

For an existing site with thousands of images, start with the pages that get the most traffic. Optimising images on the top twenty pages often covers most of what visitors actually load. Work through the rest gradually, or let a plugin process the older library in the background.

Whatever tools you use, the routine matters more than the tool. Resize, convert, name and check every image the same way, every time.

Make it a routine

The workflow only works if it is used every time. Add one line to your publishing checklist: every image goes through the bulk compressor before upload. It adds about a minute per post and removes the need for an image plugin entirely on most sites.