Skip to content
Media CloudDocs
Happy HolidaysSave 20% with codeValid through December 31Shop the sale
Update Image Privacy
On this page

Update Image Privacy

Apply per-image-size privacy settings to media that is already on cloud storage by updating file ACLs and attachment metadata.

3 min read·4 tags

Image privacy is applied when a file is uploaded to cloud storage. If you change the privacy for an image size later, existing files keep the ACL they were uploaded with until you run the Update Image Privacy task.

Where image privacy comes from

  • Cloud Storage → Upload Handling → Upload Privacy sets the default privacy for new image uploads.
  • Image Size Manager → Privacy sets a per-size override. Each size can be Inherit, Public, or Private. Inherit uses the storage default.
  • Changes to either setting only affect new uploads until this task runs.

Running the task

  1. Go to Media Cloud → Tools and run Update Image Privacy. Use the media selector if you only want to process a subset.
  2. Or select media in the media library list and choose Update Image Privacy from the bulk actions.
  3. Or run it from WP-CLI:
wp mediacloud:image-sizes update [--limit=<number>] [--offset=<number>] [--page=<number>] [--order-by=date|title|filename] [--order=asc|desc]
ArgumentTypeOptionalDescription
limitnumberyesMaximum number of attachments to process.
offsetnumberyesStarting offset. Cannot be used with page.
pagenumberyesStarting page, beginning at 1. Requires limit. Cannot be used with offset.
order-bystringyesSort by date, title, or filename.
orderstringyesasc or desc. Default is asc.

Some Media Cloud builds print wp mediacloud:image-size update in the batch tool. The registered command is wp mediacloud:image-sizes update.

What the task changes

For every attachment that has cloud storage metadata, the task:

  • updates the ACL for the full-size image and each generated size,
  • stores the resolved privacy value in the attachment metadata,
  • writes a report row for each attachment.

The task does not move or re-upload files.

Reports are written to wp-content/mcloud-reports. On multisite, reports go in wp-content/mcloud-reports/<blog-id>.

Provider limitations

ACL updates require a storage provider that supports object ACLs:

ProviderACL updates
Amazon S3, Google Cloud Storage, DigitalOcean SpacesSupported
Cloudflare R2, Bunny CDN, Backblaze B2, SupabaseNot supported

On providers without ACL support, files stay publicly readable no matter what privacy value you select. If you need private media, use a provider that supports ACLs.

Private images and signed URLs

Making an image private does not make it display automatically. Private images must be served through signed URLs or through Imgix’s private image support:

If neither is configured, private images will appear broken on the front end.

Need a hand with this guide?

Send support the exact step you’re stuck on and we’ll help you finish the setup.

Contact support
Start typing to search the docs

Escto close·⌘Kto open

View all results →