CompressX Documentation

Everything you need to install, configure, and get the best performance from CompressX Free and Pro.

CompressX Docs
Document Notice

Help Improve the Documentation

If you notice something unclear, outdated, or incorrect, feel free to let us know.

Your feedback helps keep the documentation accurate and useful for everyone.

How Media Replace Works

Feb 9, 2026 | Docs

This guide explains how Media Replace works and what happens when a media file is replaced.

You’ll learn which parts of the media remain unchanged, what gets updated behind the scenes.

What stays unchanged?

When you replace a media file:

  • 1. Media URL remains the same.
  • 2. Attachment ID remains the same.
  • 3. Existing references in posts, pages, and themes continue to work.

What gets updated?

  • 1. The original image file is replaced.
  • 2. WordPress thumbnails are regenerated.
  • 3. Optimized formats are re-created (PNG / JPG / WebP / AVIF).
  • 4. Compression settings are applied again automatically.

Designed for real-world workflows

Media Replace is especially useful for:

  • 1. Updating images already used across multiple pages.
  • 2. Fixing incorrect or low-quality uploads.
  • 3. Replacing images while keeping CDN and cache logic intact.
  • 4. Re-optimizing images with new compression strategies.

Media Replace Overview

Media Replace Overview