Skip to main content

Image Optimization

Updated over a week ago

FlyingPress includes built-in image optimization to reduce file size and improve real-world performance, without putting load on your server.

Optimize Images

Creates optimized versions of your images and updates your site to serve them.

How it works

  • Sends original images to FlyingPress Image Optimizer

  • Receives optimized images based on your settings

  • Saves optimized images in your uploads folder

  • Rewrites image URLs in your content to use optimized versions

Notes

  • Only JPG/JPEG and PNG are eligible

  • Originals are kept unless you delete them

Restore Original Images

Reverts everything back to original files.

How it works

  • Deletes optimized images

  • Updates content to use original image URLs again

Notes

  • Works only if original files still exist on disk

Delete Original Images Permanently

Deletes original files and keeps only optimized versions to save disk space.

How it works

  • Deletes originals only for images that were optimized

  • Optimized images remain and continue to be served

  • Non-optimized images are not affected

Notes

  • This action is permanent

  • You cannot restore after this unless you have your own backup

Image Format

Choose how optimized images are generated.

  • WebP – Good compression and broad browser support (safe default)

  • AVIF – Smaller files, slightly slower processing

  • Original – Optimizes but keeps JPG/PNG format

Compression Type

Controls quality vs file size.

  • Lossless – Same visual quality, smaller reduction

  • Lossy – Much smaller files, usually no visible difference

For most sites, Lossy gives the best real-world results.

Auto-optimize New Uploads

When enabled, new images are optimized automatically as you upload them to the Media Library.

Notes

  • Existing images are not affected unless you run optimization manually

  • Large batches may continue processing in the background

Understanding the status

  • Images processed includes optimized and skipped images (already optimized, too large, unsupported)

  • Total image size shows before/after so you can see actual savings

Which images are optimized

FlyingPress scans your Media Library and processes:

  • Main uploaded image files

  • WordPress-generated image sizes

Only JPG, JPEG, and PNG formats are eligible.

Excluding specific images

You can exclude specific attachment IDs using the filter below. This applies to optimize, restore, and delete queues.

add_filter('flying_press_optimization_image_ids', function ($image_ids) {
// IDs you want to skip
$exclude_ids = [8144, 8145];

return array_values(array_diff($image_ids, $exclude_ids));
});
Did this answer your question?