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
Problem
Big part of Photographs metadata is erased during upload and not preserved even in original image.
Proposed Solutions
preserveOriginalMetadataso it could be read on client;iptcmetadata option ('exif' like), its standard is small and very useful:IPTC-Photo
Alternatives considered
exifrlib on client side, yet most of meta is not preserved even on original file.Additional context
https://www.sanity.io/docs/apis-and-sdks/image-metadata