Update Image Privacy
Apply per-image-size privacy settings to media that is already on cloud storage by updating file ACLs and attachment metadata.
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
- Go to Media Cloud → Tools and run Update Image Privacy. Use the media selector if you only want to process a subset.
- Or select media in the media library list and choose Update Image Privacy from the bulk actions.
- 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]
| Argument | Type | Optional | Description |
|---|---|---|---|
limit | number | yes | Maximum number of attachments to process. |
offset | number | yes | Starting offset. Cannot be used with page. |
page | number | yes | Starting page, beginning at 1. Requires limit. Cannot be used with offset. |
order-by | string | yes | Sort by date, title, or filename. |
order | string | yes | asc or desc. Default is asc. |
Some Media Cloud builds print
wp mediacloud:image-size updatein the batch tool. The registered command iswp 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:
| Provider | ACL updates |
|---|---|
| Amazon S3, Google Cloud Storage, DigitalOcean Spaces | Supported |
| Cloudflare R2, Bunny CDN, Backblaze B2, Supabase | Not 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.