开发者 |
mediacloud
interfacelab freemius |
---|---|
更新时间 | 2024年4月9日 19:12 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.5 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
WP Offload Media provides a very small subset of everything Media Cloud provides. This plugin is an essential part of our own development stack when creating WordPress solutions for our clients and as client needs grow around media, and dealing with media in WordPress, Media Cloud gains new features and improvements.
One of the headaches of managing a WordPress site is dealing with server disk space. If you just use the S3 functionality of this plugin, you are already one step ahead. Using S3, all of your media is centrally located in one place that you can then distribute through a high performing content delivery network to improve page load speeds for your site. You also don't have to worry about disk space on your servers anymore. Imgix is a content delivery network with a twist. In addition to distributing your media, it also allows you to edit them, in real-time. and deliver the edited version through their CDN without altering the original. Want to add a new image size to your theme? You can do this with Imgix without having to use a plugin to recut all of your existing media to this new size. Imgix optimizes format delivery and a bunch of other things. It's seriously the greatest thing to happen to WordPress and web development in the history of ever.
Ignore Errors
option to migrate task to continue processing even if errors occurred during import.--ignore-errors
switch to wp mediacloud:storage migrate
command (see above)media-cloud/storage/verify/settings
filter to enable skipping cloud storage settings verification. Only use this
if you are using a strict IAM policy that prevents Media Cloud from verifying your settings.--skip-processed
flag to mediacloud:storage makewebp
command to skip any attachments that already have webp
metadata associated with them. (Premium)wp mediacloud:storage syncAllLocal
command to download all cloud storage files to your local server.wp mediacloud:storage makewebp
command to generate webp files using EWWW (see above). (Premium)wp mediacloud:integrations fixLeopardWooLinks
to replace the weird link shortcode that Leopard Offload uses.
This tool is only in the premium version. (Premium)manage_options
capability.block_categories
deprecation warning (thanks @joshuafredrickson)Transfer Mux Video
task that allows you to transfer encoded videos from Mux to cloud or local storage to serve the videos from other services and CDNs instead of Mux. Use Mux to encode, serve the result elsewhere.Regenerate Filmstrip
task to generate new filmstrips for Mux encoded videos that might not have had them generated.Relink Mux Video
task will relink any videos that were transferred with the Transfer Mux Video
task unless they've been deleted on Mux.wp mediacloud:video transfer
command to transfer videos from Mux to cloud or local storage.wp mediacloud:video relink
command to relink videos that were transferred from Mux to local or cloud storage.Video Player
settings to replace the WordPress admin default video player with the native video player using HLS.js. This allows you to preview Mux encoded videos in the admin without having to create a post.hls
object to WP REST Attachment object that includes the playlist url, poster image url, filmstrip url, width, height, duration, mp4 fallback rendition url and subtitles.yuloh/bccomp-polyfill
dependency.urlencode()
the filename which may cause issues for certain unicode characters in filenames. If imgix is working fine for you, you should not turn this on..webp
file names are stored in S3 metadata..webp
files are deleted from cloud storage when deleting an upload.mcloud_heartbeat
permission.--delete-migrated
from wp mediacloud:storage migrateToCloud
command.Logger.php
my.bucket.is.cool
.set_time_limit()
function on systems where that function is disabled.wp mediacloud:buddypress migrate
that wraps the Migrate BuddyPress Uploads task. (Premium)wp vision
to wp mediacloud:vision
.wp taskmanager
to wp mediacloud:tasks
.mediacloud:storage replace
command to search all wordpress tables, including custom ones. (Premium)mediacloud:storage replace
after running the Migrate to Cloud task. You will only need to do this once. (Premium)x-amz-bucket-region
noticesixlib
and wpsize
query parameters for imgix image URLs. To disable these query parameters, toggle Remove Extra Query Variables off in Imgix settings.media-cloud/storage/prefix
filter for adding your own custom tokens to the upload path. See an example here: https://gist.github.com/jawngee/f01c74f781b4e8cd4a6d40983e626b99media-cloud/storage/sign-url
filter to disable pre-signing image URLs in the WordPress admin. This is very edge
case, so you should only use this if support directs you to, or you know what you are doing.wp mediacloud migrateToCloud
is now wp mediacloud:storage migrate
.wp mediacloud:elementor update
wp mediacloud:storage replace
which will search and replace URLs in your database. When used
in conjunction with the new Replace URLs toggle in Cloud Storage Settings you can minimize all of the work
that Media Cloud is doing on the front end to make sure that URLs are correct. There are a lot of caveats to using
this command. Please read this article for more information:
https://support.mediacloud.press/articles/advanced-usage/command-line/replace-urlsmcloud_heartbeat
capabilityprivacy
ACL to cloud storage uploads. Since the first days of Media Cloud, we've been using the authenticated-read
ACL for private cloud storage uploads. There was a historical reason for that and functionally there is no difference
between authenticated-read
and private
ACLs for nearly all cloud storage providers. If you are using Scaleway and have
private uploads enabled, make sure you change the privacy settings from Authenticated Read to Private. For other
cloud storage providers you do not need to do this, but we suggest you do. You will also need to change the privacy on
any existing private uploads by going to the Media Library, switching to list view, filtering on Authenticated Read
and then doing a bulk action Change Privacy to Private
.WP-CONTENT/mcloud-reports
directory. DO NOT LEAVE THIS RUNNING. Turn
it on, load your page, turn it off. Note that this CSV file only logs URL replacements that happen in the content of
a post, it will not log URL replacements that happen elsewhere in your page that are the result of calling functions
like wp_get_image_src()
in your templates.WP_CONTENT/mcloud-reports
directory.mcloud-cloud/storage/should-handle-image-upload
filter to override image uploading logic when performing uploads
with certain other plugins.open_basedir restriction
error messages.wp-image-{NUMBER}
css class.
If you are seeing a lot of database calls on a page with a lot of images, try adding this snippet to your theme's functions.php
to insure that Media Cloud has enough "metadata" to do it's job: https://gist.github.com/jawngee/36c104f8a8b8ea7e7f6b0f0b837affa5report
command line command has been renamed to verify
WP_CONTENT/mcloud-reports
directorywp mediacloud syncLocal report-filename.csv
syncLocal
and verify
command line commands, ex: wp mediacloud verify verify.csv --limit=100 --page=1
wp mediacloud report report-name.csv
that iterates through all of the items in your media library and reports
on their cloud storage status.WP_CONTENT/mcloud-reports
directory.MCLOUD_TASKS_GENERATE_REPORTS
environment variable. The default value is ON.migrateToCloud
wp-cli command now accepts a --verify
flag to force verification.media-cloud/tools/added-tools
and media-cloud/tools/added-tools
for inserting other tools in other plugins into the media cloud menu.ILAB\MediaCloud\
anywhere, it's now 'MediaCloud\Plugin\'whitelist_options
filter in WP 5.5.media-cloud/storage/custom-prefix
filter.@{versioning}
is being usedupload/@{type}
then when uploading an image the upload directory will be /upload/image/
, or when uploading a video the upload path would be /upload/video/
, etc.import
command line task renamed to migrateToStorage
importFromStorage
command line taskupdateElementor
command line taskmbstring
PHP extension installedimage/*
to disallow image uploadsmigrateS3Uploads
command line command to migrate uploads from Human Made S3 Uploads pluginallow_url_fopen
disabledunlink
WP-CLI command for unlinking the media library from cloud storageupload_dir
filterupload_dir
, Media Cloud would ignore it. It still does, but you can make it honor it by setting the Upload File Prefix setting to an empty value or return FALSE from the new ilab_storage_should_use_custom_prefix
filter.wp-cli/wp-cli
package installed via composer when using BedrockcURL 28
error, try increasing this setting.add_image_size($name, $width, $height, $crop)
, use addImigixImageSize($name, $width, $height, $crop, $imgixParams)
.Focus Crop
settings of the image editor. Note that Rekognition does a vastly superior job in detecting faces (sorry Imgix) and I would urge you to use that instead. But if you aren't using Amazon S3 for storage, you'll have to use the Imgix face detection if you want to use the Focus Crop feature.Edit Image
in attachment details to open up the Imgix Image Editor. Click on the "Focus Crop" tab and go to town.wp mediacloud import
to import the media library to cloud storage from the command line.wp mediacloud regenerate
to rebuild thumbnails for cloud storage from the command line.wp rekognition process
to run the media library through Amazon Rekognition from the command line.