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:
| Approach | Storage | Server work | Risk |
|---|---|---|---|
| Upload originals, optimize with a plugin | Large originals kept forever | Processing on every upload or request | Plugin limits, fees, misconfiguration |
| Optimize first, upload finished files | Small files only | None | Very 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 type | Width | Shape |
|---|---|---|
| Full-width hero | 1920 to 2400 px | 16:9 or wider |
| Article and content images | 1600 px | Keep original shape |
| Featured image and social preview | 1200 x 675 px | 16:9 |
| Product photos | 1600 to 2000 px | 1:1 or 4:5 |
| Thumbnails in grids | 800 px | Match 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
- Collect every image for a post, a page or your whole media library into one folder.
- Open the bulk image compressor and add them all at once.
- Keep the default of 1600 pixels wide and WebP at quality 80, or adjust for the image type.
- Turn on SEO file names to convert names like IMG_4821.JPG into lowercase, hyphenated names.
- 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 toolFor 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
srcsetautomatically. - 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.
| Check | Target |
|---|---|
| Total image weight on a typical article | Under 1 MB |
| Largest single image | Under 200 KB |
| Format | WebP (or AVIF) |
| Alt text | Present 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 type | How it works | Pros | Cons |
|---|---|---|---|
| Local processing | Compresses on your own server | No external service | Uses server resources, limited formats on cheap hosting |
| Cloud compression | Sends images to a service, returns smaller files | Good results, WebP and AVIF support | Monthly limits or fees |
| Image CDN | Serves optimised versions from a separate network | Automatic resizing and formats | Ongoing 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.
| Setting | Purpose | Tip |
|---|---|---|
| deviceSizes | Widths generated for full-width images | Keep the list short to reduce cache size |
| imageSizes | Widths for smaller, fixed-size images | Match your thumbnail and card sizes |
| formats | Output formats | Add AVIF if your server can handle the extra processing |
| remotePatterns | Allowed external image sources | List only the domains you use |
| minimumCacheTTL | How long optimised images are cached | Raise 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:
- An originals folder for full quality source images, never uploaded.
- An export folder for web-ready files, named descriptively.
- 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.
| Measure | Where to find it |
|---|---|
| Media library size | Hosting file manager or an FTP client |
| Page image weight | Browser developer tools, Network panel, filtered to images |
| LCP | PageSpeed Insights |
| Backup size | Your 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.







