Private images are images that are not accessible to any end-user. Since much effort goes into producing an original image, there might be scenarios where original images must be protected and made inaccessible to anyone.
For example, a paid image gallery that shares original images with its customers only when the payment is completed.
Any original image that is marked private cannot be accessed directly through a standard image URL. Private Original Images can only be accessed through a valid signed URL.
The same logic applies when a private image is being resized using real-time transformation parameters. A valid signed URL is required to access the transformation of a private image.
However, if there are named transformations specified within the dashboard, these named transformations can be used to transform your images. Named transformations can be used with private images without generating a valid signed URL.
- 1.If you are uploading images to the Media library, pass the parameter
truein the image upload request. The uploaded image within the Media Library would be marked as private.
- 2.If you are delivering images from your S3 bucket added as an origin, set the object metadata
trueto mark the image as private. This documentation from AWS provides an overview of adding metadata to an object within S3.
- 3.If you are delivering images from an HTTP Server added as an origin, add
truewithin the server response to mark the image as private.
If an image is marked as private once, its status cannot be changed. To unmark an image as private, re-upload the file with the same name as the image that is marked private.