Title: Defyn Media Offload
Author: Defyn
Published: <strong>जून 26, 2026</strong>
Last modified: अक्टूबर 19, 2026

---

Search plugins

![](https://ps.w.org/defyn-media-offload/assets/banner-772x250.png?rev=3587217)

![](https://ps.w.org/defyn-media-offload/assets/icon.svg?rev=3587217)

# Defyn Media Offload

 [Defyn](https://profiles.wordpress.org/defyndigital/) लिखले बारे

[डाउनलोड](https://downloads.wordpress.org/plugin/defyn-media-offload.1.1.0.zip)

 * [Details](https://bho.wordpress.org/plugins/defyn-media-offload/#description)
 * [समीक्षा](https://bho.wordpress.org/plugins/defyn-media-offload/#reviews)
 *  [Installation](https://bho.wordpress.org/plugins/defyn-media-offload/#installation)
 * [Development](https://bho.wordpress.org/plugins/defyn-media-offload/#developers)

 [मदद](https://wordpress.org/support/plugin/defyn-media-offload/)

## बिबरन

Defyn Media Offload moves your WordPress media library to S3-compatible object storage
and serves every image, video and document from a fast content delivery network (
CDN), then optionally deletes the local copies so your site fits within strict host
disk and storage limits.

It works with Amazon S3, DigitalOcean Spaces, Cloudflare R2, Wasabi, Backblaze B2,
Google Cloud Storage (in S3 mode), MinIO and any other S3-compatible object store.
Offloading your uploads to cloud storage frees up server disk space, shrinks your
backups, lowers bandwidth costs, and lets a global CDN deliver your images faster.

It was built for a large WooCommerce and multi-vendor marketplace on managed WordPress(
where Jetpack’s image CDN virtualises some thumbnail sizes), so it is hardened against
the edge cases that break naive media offload plugins.

**Key features**

 * Automatic offload on upload, after all thumbnail sizes are generated, including
   front-end (vendor) uploads.
 * Serves product images, galleries, variation images, responsive `srcset`, REST
   API URLs and content-embedded images from the CDN.
 * Resumable, cursor-based bulk migration for very large libraries (survives dropped
   SSH sessions). WP-CLI is the supported path; a browser-driven runner and Action
   Scheduler background runner are also provided.
 * Optional, decoupled “remove local” pass so migration and deletion stay safe and
   reversible.
 * Optional mirror-delete: removing an attachment removes its objects from the store.
 * Handles Jetpack “virtual” thumbnail sizes (skip-and-log, never stalls).
 * WooCommerce downloadable/protected files are stored privately and served with
   time-limited signed URLs, never made public-read.
 * Sends a long-lived, configurable `Cache-Control` header with public objects for
   efficient CDN and browser caching.
 * Optional hourly auto-retry (WP-Cron) that offloads any pending or previously 
   failed uploads in the background.
 * Keeps the WordPress image editor working after local copies are removed: originals
   are fetched back from the store on demand for crop, rotate and thumbnail regeneration,
   then re-offloaded.
 * Storage dashboard showing how much is stored in object storage and how much local
   disk has been reclaimed.
 * Works with the AWS SDK for PHP v3, namespace-isolated with php-scoper so it never
   conflicts with other plugins’ bundled AWS SDK.

**Configuration**

For best security, define credentials as constants in `wp-config.php`:

    ```
    define( 'OSMO_KEY',      'your-access-key' );
    define( 'OSMO_SECRET',   'your-secret-key' );
    define( 'OSMO_BUCKET',   'your-bucket' );
    define( 'OSMO_REGION',   'syd1' );
    define( 'OSMO_ENDPOINT', 'https://syd1.digitaloceanspaces.com' );
    define( 'OSMO_CDN',      'https://cdn.example.com' );
    ```

Otherwise enter them on **Media  Media Offload**.

### External services

This plugin connects to one external service: the S3-compatible object storage
 
endpoint that **you** configure (for example DigitalOcean Spaces, Amazon S3, Wasabi,
or a self-hosted MinIO server). It is used to store and serve your media files.

 * What is sent, and when: when you upload media (or run a migration), the media
   
   files and their object keys (the uploads-relative path, e.g. 2026/06/image.jpg)
   are uploaded to the bucket you configured, using the access key and secret you
   provide. URL rewriting and verification read object keys back from the same bucket.
 * The plugin does not contact any other server. It does not collect analytics,
   
   telemetry, or usage data, and it never “phones home” to the author.
 * You must supply your own credentials and accept the terms and privacy policy
   
   of whichever storage provider you choose. DigitalOcean Spaces: https://www.digitalocean.
   com/legal/terms-of-service-agreement / https://www.digitalocean.com/legal/privacy-
   policy . Amazon S3: https://aws.amazon.com/service-terms/ / https://aws.amazon.
   com/privacy/ .

### Third-party libraries

This plugin bundles the AWS SDK for PHP v3 (Apache License 2.0, GPL-compatible)

and its dependencies (Guzzle, PSR interfaces, JMESPath, Symfony polyfills). The 
SDK is namespace-isolated under `OSMO\Vendor\` using php-scoper so it never conflicts
with an AWS SDK bundled by another plugin. This is namespacing, not obfuscation,
and the bundled PHP remains fully human-readable.

The full source code and the build tooling (composer.json, scoper.inc.php,
 build.
sh, and the post-scope patch helpers in bin/) are available so the bundled vendor/
directory can be reproduced from scratch with `bash build.sh`.

## Installation

 1. Build the bundled AWS SDK once (developer step): run `composer install` then `bash
    build.sh` in the plugin directory. Release ZIPs already include the scoped `vendor/`
    directory.
 2. Upload the plugin to `wp-content/plugins/` and activate it.
 3. Go to **Media  Media Offload**, enter your credentials (or define the `OSMO_*` 
    constants), and click **Test connection**.
 4. Run the bulk migration: `wp osmo offload --all`, verify with `wp osmo verify`, 
    then optionally `wp osmo remove-local --all`.

## FAQ

### Does it work with DigitalOcean Spaces?

Yes. Set the region (e.g. `syd1`), the endpoint (`https://syd1.digitaloceanspaces.
com`) and your CDN base. Any S3-compatible store works.

### Will it break Jetpack / WordPress.com image handling?

Turn off Jetpack’s Site Accelerator (image CDN) so real thumbnail files exist to
offload. The plugin also detects Jetpack “virtual” sizes and skips them rather than
stalling. Only this plugin rewrites image URLs.

### Is removing local files reversible?

The objects remain in your store, and `wp osmo` / the admin can re-download them.
Keep backups until you are confident.

### What about WooCommerce downloadable products?

Protected download files are stored with a private ACL and are never exposed public-
read. When “Private files via signed URLs” is enabled, direct links to those files
are served as time-limited signed URLs (default 5 minutes, configurable); otherwise
they continue to serve locally through WooCommerce.

### Can it keep caching headers for the CDN?

Yes. Public objects are uploaded with a `Cache-Control` header. The max-age is configurable
on the settings page (default one year) and applies to newly offloaded files.

### Can I edit or crop images after removing the local copies?

Yes. When WordPress needs the source file for cropping, rotating or regenerating
thumbnails and the local copy has been removed, the plugin downloads it back from
the store automatically, then re-offloads the new sizes.

## समीक्षा

There are no reviews for this plugin.

## Contributors & Developers

“Defyn Media Offload” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Defyn ](https://profiles.wordpress.org/defyndigital/)

[Translate “Defyn Media Offload” into your language.](https://translate.wordpress.org/projects/wp-plugins/defyn-media-offload)

### Interested in development?

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

## Changelog

#### 1.1.0

 * New: WooCommerce/private files are now served with time-limited signed URLs (
   configurable lifetime), so they stay protected even after local copies are removed.
 * New: configurable `Cache-Control` max-age header on public objects for CDN and
   browser caching.
 * New: optional hourly auto-retry via WP-Cron that offloads pending or previously
   failed uploads.
 * New: storage dashboard showing bytes stored in object storage and local disk 
   reclaimed, in the settings page, Dashboard widget, and `wp osmo status`.
 * Fix: the WordPress image editor (crop, rotate, scale, regenerate thumbnails) 
   now works after local copies have been removed; the source file is fetched back
   from the store on demand and the new sizes are re-offloaded.

#### 1.0.0

 * Initial release.

## मेटा

 *  Version **1.1.0**
 *  Last updated **3 weeks पहिले**
 *  Active installations **10 गो से कम**
 *  WordPress version ** 6.0 चाहे एकरो से ऊपर **
 *  Tested up to **7.0.8**
 *  PHP version ** 8.1 चाहे एकरो से ऊपर **
 *  Language
 * [English (US)](https://wordpress.org/plugins/defyn-media-offload/)
 * Tags
 * [cdn](https://bho.wordpress.org/plugins/tags/cdn/)[cloud storage](https://bho.wordpress.org/plugins/tags/cloud-storage/)
   [digitalocean spaces](https://bho.wordpress.org/plugins/tags/digitalocean-spaces/)
   [media offload](https://bho.wordpress.org/plugins/tags/media-offload/)[s3](https://bho.wordpress.org/plugins/tags/s3/)
 *  [Advanced View](https://bho.wordpress.org/plugins/defyn-media-offload/advanced/)

## रेटिंग्स

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/defyn-media-offload/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/defyn-media-offload/reviews/)

## Contributors

 *   [ Defyn ](https://profiles.wordpress.org/defyndigital/)

## मदद

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/defyn-media-offload/)