Title: OrigiSafe — Advanced Image Optimizer (WebP) — Keep Originals Safe
Author: CaphLabs
Published: <strong>February 11, 2026</strong>
Last modified: February 11, 2026

---

Search plugins

![](https://ps.w.org/origisafe-advanced-image-optimizer/assets/banner-772x250.png?
rev=3459133)

![](https://ps.w.org/origisafe-advanced-image-optimizer/assets/icon-256x256.png?
rev=3459133)

# OrigiSafe — Advanced Image Optimizer (WebP) — Keep Originals Safe

 By [CaphLabs](https://profiles.wordpress.org/ipodguy79/)

[Download](https://downloads.wordpress.org/plugin/origisafe-advanced-image-optimizer.0.0.122.zip)

 * [Details](https://test.wordpress.org/plugins/origisafe-advanced-image-optimizer/#description)
 * [Reviews](https://test.wordpress.org/plugins/origisafe-advanced-image-optimizer/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/origisafe-advanced-image-optimizer/#installation)
 * [Development](https://test.wordpress.org/plugins/origisafe-advanced-image-optimizer/#developers)

 [Support](https://wordpress.org/support/plugin/origisafe-advanced-image-optimizer/)

## Description

Keep Originals Safe, convert JPEG/PNG images to WebP and makes WebP the canonical
file. WP returns `.webp` URLs, Keeping originals safely archived.

### How it works (high level)

 1. **Convert**
 2.  * For a JPG/PNG attachment, the plugin generates a WebP for the full image and
       all WordPress-generated sizes.
     * Conversion is done through WordPress’ image editor system (**WP_Image_Editor**),
       meaning it uses **GD** or **Imagick** (whichever your server supports) with 
       WebP support enabled.
 3. **Move originals**
 4.  * The original JPG/PNG files are moved to:
        - `wp-content/uploads/_originals/...`
     * The folder structure mirrors your uploads structure.
 5. **Update WordPress to serve WebP**
 6.  * Attachment “file” + metadata are updated so WordPress serves `.webp` as the 
       attachment file.
     * Attachment mime type is updated to `image/webp`.
 7. **Optional: Replace old URLs everywhere**
 8.  * If enabled, the plugin can replace old `.jpg/.png` URLs across:
        - post content
        - postmeta
     * Replacement is **serialized-safe** (does not break serialized arrays).

### Background jobs (keeps running after page reload)

Conversion/repair/sweep jobs are designed to run in the background. They keep ticking
even if you refresh the page or close the tab.

The plugin uses multiple loopback methods (admin-post / REST / public tick fallback)
so it can keep working even on restrictive hosting setups.

### Log + “it looks frozen” note

A rolling “terminal style” log is written to:
 – `wp-content/uploads/hsbc-webp-only/
logs/webp-only.log`

If the log appears to freeze in the admin page:
 – click **Refresh Log**, or – refresh
the page

The job may still be running server-side; refreshing the log/page usually catches
up.

### Usage

Go to **Media  WebP Only**.

### Settings

 * **Quality**
    - WebP quality for conversion (0–100).
 * **Batch size**
    - How many items to process per tick. Smaller batches reduce server load.
 * **Replace old .jpg/.png URLs across content + postmeta (serialized-safe)**
    - Recommended if your site content contains hard-coded image URLs.
 * **Sweep Include / Exclude**
    - Used by the Sweep tools to control which folders are scanned.

### Conversion Jobs (buttons)

**Start Bulk Convert**
 – Converts Media Library attachments (JPG/PNG) in batches.–
Moves originals to `uploads/_originals/`. – Updates attachment metadata so WordPress
serves `.webp`. – Optional URL replacement (content + postmeta).

**Start Repair/Cleanup**
 – Repairs inconsistencies if something was partially converted
or moved. – Useful after restores/migrations or if some attachments have mismatched
metadata. – Optional URL replacement.

**Start Folder Sweep**
 – Scans the filesystem for eligible images (based on your
Sweep Include/Exclude rules). – Designed for sites with additional image folders
beyond standard uploads. – Optional URL replacement.

**Stop Job**
 – Stops the currently running job.

### Maintenance / Cleanup (buttons)

**Delete duplicate _originals**
 – Deletes backup files in `uploads/_originals/`*
only when* an identical file already exists in `uploads/`. – This is a cleanup tool
for situations where originals were restored back into uploads and you no longer
need the archived duplicate.

**Delete duplicate _webp**
 – Removes orphaned WebP cache files in: – `uploads/_webp/`–
Only deletes WebP files that no longer match anything in `uploads/` or `uploads/
_originals/`.

**Delete duplicate sweep _originals**
 – Maintenance cleanup for **non-uploads**
roots (folders under `wp-content/`) that contain their own `_originals/` folders.–
It uses your **Sweep Include** list to find those roots. – Only deletes a file from`
<root>/_originals/` when the same file exists at `<root>/` AND the file size matches(
safe duplicate).

**Revert Everything**
 – Restores original JPG/PNG files from `uploads/_originals/`
back into `uploads/`. – Reverts attachment metadata so WordPress serves the originals
again.

### Log controls

**Refresh Log**
 – Pulls the latest log tail into the admin screen.

**Reset Log**
 – Clears the log file.

### Requirements

 * WordPress’ image editor must support WebP.
    - **GD** with WebP support, or
    - **Imagick** with WebP support
 * If WebP conversion is not supported on your server, conversion/repair/sweep will
   refuse to run (revert tools can still work).

## Installation

 1. Upload the plugin folder to `/wp-content/plugins/`
 2. Activate the plugin
 3. Go to **Media  WebP Only**

## FAQ

### Does this delete my originals?

No. Originals are moved into `wp-content/uploads/_originals/` and can be restored
with **Revert Everything**.

### Does this create “sidecar” WebP while keeping the JPG/PNG as the main file?

No. This plugin is designed to make WebP the canonical attachment file in WordPress(
while keeping originals archived).

### What does “Replace everywhere” do?

It replaces old `.jpg/.png` URLs in post content and postmeta. It is serialized-
safe to avoid breaking serialized values.

### Why do I see an `_webp` folder?

The plugin can reuse archived WebP files and also provides a cleanup tool that removes
orphaned WebP files that no longer match anything.

### What this plugin does NOT do

 * It does not generate AVIF (WebP only).
 * It does not add `<picture>` tags or do theme-level markup changes.
 * It does not optimize already-WebP images.
 * It does not rewrite external/CDN image URLs outside your WordPress database content/
   postmeta.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“OrigiSafe — Advanced Image Optimizer (WebP) — Keep Originals Safe” is open source
software. The following people have contributed to this plugin.

Contributors

 *   [ CaphLabs ](https://profiles.wordpress.org/ipodguy79/)

[Translate “OrigiSafe — Advanced Image Optimizer (WebP) — Keep Originals Safe” into your language.](https://translate.wordpress.org/projects/wp-plugins/origisafe-advanced-image-optimizer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/origisafe-advanced-image-optimizer/),
check out the [SVN repository](https://plugins.svn.wordpress.org/origisafe-advanced-image-optimizer/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/origisafe-advanced-image-optimizer/)
by [RSS](https://plugins.trac.wordpress.org/log/origisafe-advanced-image-optimizer/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.0.122

 * Initial build: WebP conversion, move originals, bulk/repair/sweep/revert tools,
   cleanup tools, background runner, and logging.

## Meta

 *  Version **0.0.122**
 *  Last updated **3 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/origisafe-advanced-image-optimizer/)
 * Tags
 * [images](https://test.wordpress.org/plugins/tags/images/)[media library](https://test.wordpress.org/plugins/tags/media-library/)
   [optimization](https://test.wordpress.org/plugins/tags/optimization/)[webp](https://test.wordpress.org/plugins/tags/webp/)
 *  [Advanced View](https://test.wordpress.org/plugins/origisafe-advanced-image-optimizer/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/origisafe-advanced-image-optimizer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/origisafe-advanced-image-optimizer/reviews/)

## Contributors

 *   [ CaphLabs ](https://profiles.wordpress.org/ipodguy79/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/origisafe-advanced-image-optimizer/)