You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ability to add/preserve/modify EXIF metadata & ICC profile for images could be a useful feature.
😯 Current Behavior
Currently, there is some support for retaining EXIF metadata, however it is not configurable, and from what I can tell it does not preserve it when building for production:
Keep most metadata (EXIF, XMP, IPTC) from the input image in the output image.
This will also convert to and add a web-friendly sRGB ICC profile if appropriate.
💁 Possible Solution
It would be nice if there was a way to do this using image transformations.
For example:
<imgsrc="image.jpg?metadata=true"><!-- preserve all metadata --><imgsrc="image.jpg?metadata=false"><!-- strip all metadata --><imgsrc="image.jpg"><!-- strip metadata by default, unless configured otherwise. where could this config be located? --><imgsrc="image.jpg?exif=true"><!-- preserve exif --><imgsrc="image.jpg?metadata=false&exif=true"><!-- strip all metadata except exif --><imgsrc="image.jpg?metadata=true&exif=false"><!-- preserve all metadata except exif --><imgsrc="image.jpg?icc=preserve"><!-- preserves ICC profile --><imgsrc="image.jpg?icc=srgb"><!-- convert to named ICC profile --><imgsrc="image.jpg"><!-- convert to a "web-friendly sRGB ICC profile" (current behaviour) -->
TODO: How should adding new metadata be handled? A possible solution could be something like
<!--This preserves the existing EXIF (exif=true) and adds/overwrites the following EXIF tags:- the "Copyright" tag with the value "(c) Me and Myself"- the "Photographer" tag with the value "Me"To not preserve the existing EXIF and only add the new tags, remove `exif=true`.--><imgsrc="image.jpg?exif=true&exif={Image.Copyright=(c) Me and Myself,Photo.Photographer=Me}">
🙋 Feature Request
The ability to add/preserve/modify EXIF metadata & ICC profile for images could be a useful feature.
😯 Current Behavior
Currently, there is some support for retaining EXIF metadata, however it is not configurable, and from what I can tell it does not preserve it when building for production:
parcel/packages/core/integration-tests/test/image.js
Lines 196 to 230 in a53f8f3
However, I'm unsure about this.
There is no support for retaining the ICC profile. Currently, it will convert images to a "web-friendly sRGB ICC profile":
💁 Possible Solution
It would be nice if there was a way to do this using image transformations.
For example:
TODO: How should adding new metadata be handled? A possible solution could be something like
For a list of EXIF tag names, see:
This part needs to be investigated further.
🔦 Context
See:
The text was updated successfully, but these errors were encountered: