Picovert

Optimize WordPress Media Library Images: Compress Before You Upload

Picovert チーム著2026-04-015分で読了

Every image you drop into the WordPress media library is stored at full size and regenerated into several thumbnail sizes — so one oversized photo can quietly add megabytes to your site and slow every page that uses it. Compressing and resizing images beforeyou upload is the single most effective way to keep a WordPress site fast. Here's how to do it the right way.

Why pre-upload optimization beats plugins

WordPress compression plugins are convenient, but they run after the fact, consume server resources, and often keep the bloated original on disk. Optimizing before upload means:

  • Smaller originals, so every generated thumbnail is smaller too
  • No extra plugin slowing down your admin or hosting
  • A leaner media library that's faster to back up and migrate

Step 1: Resize to the dimensions you actually use

This is the biggest win. A 6000 × 4000 px photo from a camera is wasteful when your content area is only 1200 px wide. Resize first:

  • Full-width featured images: 1200–2000 px wide is plenty for most themes
  • In-content images: match your content column width (often 700–1000 px)
  • Thumbnails and logos: a few hundred pixels

Use the Image Resizerto scale images down to the largest size your theme displays. There's no benefit to uploading pixels no visitor will ever see.

Step 2: Compress to cut the file size

After resizing, compress to remove the remaining excess data:

  1. Open the Image Compressor and add your resized images
  2. For photos, JPG quality around 80% is the sweet spot — small files, no visible loss
  3. For graphics and screenshots, keep PNG but let the compressor shrink it
  4. Download and upload the optimized files to WordPress

Step 3: Use a modern format where it helps

WordPress supports WebP, which is typically 25–35% smaller than JPG at the same quality. Convert your images with the Image Converter before uploading for an extra speed boost — just confirm your theme and any image-heavy plugins display WebP correctly.

Target file sizes for WordPress

Image typeTarget size
Featured / hero imageUnder 200 KB
In-content photoUnder 100 KB
Thumbnail / iconUnder 30 KB

Don't forget the bulk uploads

Migrating a gallery or a batch of product photos? Compress them all at once rather than one by one — the Image Compressor handles multiple files in a single pass, so a whole folder is optimized before it ever reaches your media library.

Key takeaways

  • Resize to your theme's display width before uploading — the biggest single win
  • Compress to roughly 80% JPG quality for photos with no visible loss
  • Consider WebP for an extra 25–35% size reduction
  • Optimize in bulk with the Image Compressor and Image Resizer to keep your media library lean