{"id":331976,"date":"2026-06-26T11:17:19","date_gmt":"2026-06-26T11:17:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/defyn-media-offload\/"},"modified":"2026-06-26T11:48:17","modified_gmt":"2026-06-26T11:48:17","slug":"defyn-media-offload","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/defyn-media-offload\/","author":23220588,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0","requires":"6.0","requires_php":"8.1","requires_plugins":null,"header_name":"Defyn Media Offload","header_author":"Defyn","header_description":"Offload the WordPress media library to any S3-compatible object store (DigitalOcean Spaces, Amazon S3, Wasabi, MinIO \u2026), serve images from the CDN, and optionally remove local copies to reclaim disk. Built to survive WordPress.com \/ Jetpack virtual thumbnails and large, resumable bulk migrations.","assets_banners_color":"2664e3","last_updated":"2026-06-26 11:48:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/defyn.com.au","rating":0,"author_block_rating":0,"active_installs":0,"downloads":60,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"defyndigital","date":"2026-06-26 11:48:17"}},"upgrade_notice":{"1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3587217,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3587217,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3587217,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3587217,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3587217,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Settings and live offload stats.","2":"Bulk migration runner.","3":"Media library offload column."}},"plugin_section":[262246],"plugin_tags":[3863,10725,243479,255105,217],"plugin_category":[50,59],"plugin_contributors":[263223],"plugin_business_model":[],"class_list":["post-331976","plugin","type-plugin","status-publish","hentry","plugin_section-dashboard-widgets","plugin_tags-cdn","plugin_tags-cloud-storage","plugin_tags-digitalocean-spaces","plugin_tags-media-offload","plugin_tags-s3","plugin_category-media","plugin_category-utilities-and-tools","plugin_contributors-defyndigital","plugin_committers-defyndigital"],"banners":{"banner":"https:\/\/ps.w.org\/defyn-media-offload\/assets\/banner-772x250.png?rev=3587217","banner_2x":"https:\/\/ps.w.org\/defyn-media-offload\/assets\/banner-1544x500.png?rev=3587217","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/defyn-media-offload\/assets\/icon.svg?rev=3587217","icon":"https:\/\/ps.w.org\/defyn-media-offload\/assets\/icon.svg?rev=3587217","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<p><strong>Key features<\/strong><\/p>\n\n<ul>\n<li>Automatic offload on upload, after all thumbnail sizes are generated, including front-end (vendor) uploads.<\/li>\n<li>Serves product images, galleries, variation images, responsive <code>srcset<\/code>, REST API URLs and content-embedded images from the CDN.<\/li>\n<li>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.<\/li>\n<li>Optional, decoupled \"remove local\" pass so migration and deletion stay safe and reversible.<\/li>\n<li>Optional mirror-delete: removing an attachment removes its objects from the store.<\/li>\n<li>Handles Jetpack \"virtual\" thumbnail sizes (skip-and-log, never stalls).<\/li>\n<li>WooCommerce downloadable\/protected files are stored privately and never made public-read.<\/li>\n<li>Works with the AWS SDK for PHP v3, namespace-isolated with php-scoper so it never conflicts with other plugins' bundled AWS SDK.<\/li>\n<\/ul>\n\n<p><strong>Configuration<\/strong><\/p>\n\n<p>For best security, define credentials as constants in <code>wp-config.php<\/code>:<\/p>\n\n<pre><code>define( 'OSMO_KEY',      'your-access-key' );\ndefine( 'OSMO_SECRET',   'your-secret-key' );\ndefine( 'OSMO_BUCKET',   'your-bucket' );\ndefine( 'OSMO_REGION',   'syd1' );\ndefine( 'OSMO_ENDPOINT', 'https:\/\/syd1.digitaloceanspaces.com' );\ndefine( 'OSMO_CDN',      'https:\/\/cdn.example.com' );\n<\/code><\/pre>\n\n<p>Otherwise enter them on <strong>Media \u2192 Media Offload<\/strong>.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to one external service: the S3-compatible object storage\nendpoint that <strong>you<\/strong> configure (for example DigitalOcean Spaces, Amazon S3,\nWasabi, or a self-hosted MinIO server). It is used to store and serve your media\nfiles.<\/p>\n\n<ul>\n<li>What is sent, and when: when you upload media (or run a migration), the media\nfiles and their object keys (the uploads-relative path, e.g.\n  2026\/06\/image.jpg) are uploaded to the bucket you configured, using the\naccess key and secret you provide. URL rewriting and verification read object\nkeys back from the same bucket.<\/li>\n<li>The plugin does not contact any other server. It does not collect analytics,\ntelemetry, or usage data, and it never \"phones home\" to the author.<\/li>\n<li>You must supply your own credentials and accept the terms and privacy policy\nof whichever storage provider you choose. DigitalOcean Spaces:\nhttps:\/\/www.digitalocean.com\/legal\/terms-of-service-agreement \/\nhttps:\/\/www.digitalocean.com\/legal\/privacy-policy . Amazon S3:\nhttps:\/\/aws.amazon.com\/service-terms\/ \/ https:\/\/aws.amazon.com\/privacy\/ .<\/li>\n<\/ul>\n\n<h3>Third-party libraries<\/h3>\n\n<p>This plugin bundles the AWS SDK for PHP v3 (Apache License 2.0, GPL-compatible)\nand its dependencies (Guzzle, PSR interfaces, JMESPath, Symfony polyfills). The\nSDK is namespace-isolated under <code>OSMO\\Vendor\\<\/code> using php-scoper so it never\nconflicts with an AWS SDK bundled by another plugin. This is namespacing, not\nobfuscation, and the bundled PHP remains fully human-readable.<\/p>\n\n<p>The full source code and the build tooling (composer.json, scoper.inc.php,\nbuild.sh, and the post-scope patch helpers in bin\/) are available so the bundled\n    vendor\/ directory can be reproduced from scratch with <code>bash build.sh<\/code>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Build the bundled AWS SDK once (developer step): run <code>composer install<\/code> then <code>bash build.sh<\/code> in the plugin directory. Release ZIPs already include the scoped <code>vendor\/<\/code> directory.<\/li>\n<li>Upload the plugin to <code>wp-content\/plugins\/<\/code> and activate it.<\/li>\n<li>Go to <strong>Media \u2192 Media Offload<\/strong>, enter your credentials (or define the <code>OSMO_*<\/code> constants), and click <strong>Test connection<\/strong>.<\/li>\n<li>Run the bulk migration: <code>wp osmo offload --all<\/code>, verify with <code>wp osmo verify<\/code>, then optionally <code>wp osmo remove-local --all<\/code>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20with%20digitalocean%20spaces%3F\"><h3>Does it work with DigitalOcean Spaces?<\/h3><\/dt>\n<dd><p>Yes. Set the region (e.g. <code>syd1<\/code>), the endpoint (<code>https:\/\/syd1.digitaloceanspaces.com<\/code>) and your CDN base. Any S3-compatible store works.<\/p><\/dd>\n<dt id=\"will%20it%20break%20jetpack%20%2F%20wordpress.com%20image%20handling%3F\"><h3>Will it break Jetpack \/ WordPress.com image handling?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"is%20removing%20local%20files%20reversible%3F\"><h3>Is removing local files reversible?<\/h3><\/dt>\n<dd><p>The objects remain in your store, and <code>wp osmo<\/code> \/ the admin can re-download them. Keep backups until you are confident.<\/p><\/dd>\n<dt id=\"what%20about%20woocommerce%20downloadable%20products%3F\"><h3>What about WooCommerce downloadable products?<\/h3><\/dt>\n<dd><p>Protected download files are stored with a private ACL and continue to serve through WooCommerce locally; they are never exposed public-read.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Offload WordPress media to Amazon S3, DigitalOcean Spaces, Wasabi, Cloudflare R2 or MinIO, serve images from a CDN, and reclaim server disk space.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/331976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=331976"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/defyndigital"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=331976"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=331976"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=331976"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=331976"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=331976"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=331976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}