Managing metadata in Cloudinary is essential for maintaining asset information during various operations, such as replacing resources or applying transformations. This guide provides insights into preserving metadata and understanding its handling during transformations.
1. Preserving Tags and Metadata When Replacing a Resource
When updating a resource in the Media Library, it’s crucial to retain existing tags and metadata to maintain consistency. To ensure that tags and metadata are preserved during the replacement process:
1. Navigate to Digital Asset Management > Preferences in the Cloudinary console.
2. Scroll down to the Metadata on upload section.
3. Check the box labeled Keep existing metadata when uploading newer versions of an asset.
4. Click Save at the bottom of the page to apply the changes.
By enabling this setting, any new version of an asset uploaded will retain the existing tags and metadata associated with the original resource.
The following video demonstrates the steps above:
2. Handling Metadata During Image Transformations
When images are uploaded to Cloudinary, the original metadata—such as ICC profiles, EXIF data, and IPTC information—is generally retained and included when delivering the untransformed version of the image. However, when transformations are applied, Cloudinary typically strips most of this metadata to reduce storage usage and enhance delivery speed.
To preserve specific metadata during transformations, you can use the following transformation flags:
• Preserve IPTC Metadata: Add the fl_keep_iptc flag to your transformation URL.
• Example:
http://res.cloudinary.com/demo/image/upload/fl_keep_iptc,w_500,h_500/sample.jpg
• Preserve Copyright-Related Fields: Use the fl_keep_attribution flag.
• Example:
https://res.cloudinary.com/demo/image/upload/fl_keep_attribution,w_500,c_limit,h_500/couple.jpg
For a comprehensive list of available transformation flags and their usage, refer to Cloudinary’s Transformation Flags reference documentation.
By understanding and utilizing these settings and flags, you can effectively manage and preserve metadata within your Cloudinary workflows.
Comments
0 comments
Please sign in to leave a comment.