Skip to content

Feature request: "Option to preserve original Image Metadata / or add 'iptc' metadata on Photo upload" #12812

Description

@am0wa

Problem
Big part of Photographs metadata is erased during upload and not preserved even in original image.

Proposed Solutions

  • either add config to preserveOriginalMetadata so it could be read on client;
  • or simply add iptc metadata option ('exif' like), its standard is small and very useful:
    IPTC-Photo

Alternatives considered

  • I've tried to use exifr lib on client side, yet most of meta is not preserved even on original file.
  • I've tried to use custom loader via media-plugin config with patching the data, yet its inconvenient workaround and all older uploads have no such meta anyway.
  • I've considered to contribute to media plugin, yet the proper place to fix it is in sanity itself.

Additional context

IPTC metadata fields are standardized data properties embedded in image files. They describe who made the photo, what it shows, who owns it, and how it can be used. Key fields include Keywords, Copyright Notice, Creator, Headline, and Description.

https://www.sanity.io/docs/apis-and-sdks/image-metadata


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions