Sign inBlogSupportContact
Media

Compress your entire media library without leaving WordPress

No plugin subscriptions. No external APIs. One command, smaller images.

4 min read May 2026 optimize images

Your images are bigger than they need to be

Every image uploaded to WordPress is stored exactly as-is. No compression. No optimization. A 3MB JPEG straight from a camera or design tool stays 3MB forever.

Multiply that across hundreds of uploads over a few years and your media library is quietly adding seconds to every page load. Core Web Vitals suffer. Visitors bounce. Google notices.

What most people do instead

The usual fixes all come with trade-offs.

Image optimization pluginsMonthly subscriptions, external API calls, usage limits. Your images leave your server for processing.
Desktop tools before uploadManually compress every image in Photoshop or TinyPNG before uploading. Nobody does this consistently.
Server-side CLI toolsjpegoptim or cwebp via SSH. Requires server access most site owners don't have.

A better way: compress everything in one command

Open the TrueCommander navigator. Type optimize images. Hit enter.

The command scans your JPEG and PNG files, compresses each one using PHP's built-in GD library, and replaces the original only if it's at least 5% smaller. Nothing leaves your server. No API keys. No subscriptions.

TrueCommander
Optimize images
18 images optimized
hero-banner.jpg2.4 MB → 1.1 MB -54%
product-shot-01.png1.8 MB → 980 KB -47%
team-photo.jpg3.1 MB → 1.4 MB -55%

Nothing leaves your server. Compression runs locally using PHP's GD extension. Your images are never sent to a third-party API.

How it works

Three steps. No configuration required.

1
Open the navigatorPress ++W (or your custom shortcut) to open TrueCommander
2
Type "optimize images"Add optional flags: -quality=75 for stronger compression, -webp for WebP copies
3
Review the resultsSee before/after sizes, percentage saved per image, and total count optimized
DetailValue
Command nameoptimize images
FormatsJPEG and PNG
Default quality82 (adjustable 60-95)
Batch size50 images per run
Skip thresholdLess than 5% savings = skipped
WebP flag-webp generates sidecar WebP copies
Auto-WebP toggle-toggle-auto-webp for future uploads
Can be used in

Real example

You migrated a 4-year-old WooCommerce store to new hosting. The uploads folder is 6.2 GB across 1,400 product images. None were ever compressed.

You run optimize images -webp. First batch: 50 images processed, 42 optimized, average reduction 38%. The other 8 were already small enough.

You run it again. Another 50. Again. After 28 runs over a lunch break, every image in the library is compressed and has a WebP sidecar ready to serve.

Total uploads folder: 6.2 GB down to 3.8 GB. Page speed score jumps 12 points. No content changed. No URLs broke.

Goes further with TrueCommander

One-off compression is useful. Automated compression is better.

Ready?

Smaller images, faster pages.

This is one of 91 commands. All included with every license.

Cookies. The short version.

Essential cookies keep the cart and theme working. Analytics only fire if you say yes. Read our policy.