Skip to content

Metadata: Extract Notes from UserComment field #3352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chuckweger opened this issue Apr 26, 2023 · 0 comments
Closed

Metadata: Extract Notes from UserComment field #3352

chuckweger opened this issue Apr 26, 2023 · 0 comments
Assignees
Labels
idea Feedback wanted / feature request metadata Related to Exif, XMP, IPTC & Co. released Available in the stable release

Comments

@chuckweger
Copy link

Describe what problem this solves and why this would be valuable to many users
The popular utility exiftool can be used to add tags to photos which are then imported into PhotoPrism. However, exiftool cannot insert the "Comments" tag into iOS-created HEIC photos, because "Comments" is apparently a legacy JPEG-only tag, and does not exist in EXIF or IPTC namespaces.

Describe the solution you'd like
exiftool can, however, insert the EXIF "UserComment" tag into HEIC photos, but PhotoPrism ignores this tag.

A solution would be to map the UserComment tag into PhotoPrism's Notes field, just as PhotoPrism maps the Comments tag now. If both tags happened to be in a file, then it's your choice which one to map (probably Comments to conform to legacy behavior).

Describe alternatives you've considered
The only alternative I can think of is to pre-convert any HEIC file into JPEG format before importing. This is both time-consuming and risks losing other metadata in the file.

Additional context
To test, pick any HEIC photo and try this command:

exiftool -Comment="A fabulous image" [somefilename].HEIC

This command fails in exiftool because it does not support adding that tag to HEIC files.

Instead, do this:

exiftool -UserComment="A fabulous image" [somefilename].HEIC

This correctly inserts the tag into the HEIC file, but currently PhotoPrism does not ingest that tag.

A sample HEIC image containing the UserComment tag is attached. It's in a zip file because GitHub also apparently doesn't support HEIC files.

IMG_0402.HEIC.zip

@chuckweger chuckweger added the idea Feedback wanted / feature request label Apr 26, 2023
@lastzero lastzero added metadata Related to Exif, XMP, IPTC & Co. quick-win Small task or feature with high impact labels Apr 27, 2023
@lastzero lastzero self-assigned this Apr 27, 2023
lastzero added a commit that referenced this issue Apr 29, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero lastzero added please-test Ready for acceptance test and removed quick-win Small task or feature with high impact labels Apr 29, 2023
@lastzero lastzero changed the title Import: Map EXIF tag UserComment to PhotoPrism Notes field Metadta: Map EXIF tag UserComment to PhotoPrism Notes field Apr 29, 2023
@lastzero lastzero changed the title Metadta: Map EXIF tag UserComment to PhotoPrism Notes field Metadata: Extract Notes from UserComment field Apr 29, 2023
@graciousgrey graciousgrey added released Available in the stable release and removed please-test Ready for acceptance test labels May 3, 2023
@lastzero lastzero moved this to Released 🌈 in Roadmap 🚀✨ Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Feedback wanted / feature request metadata Related to Exif, XMP, IPTC & Co. released Available in the stable release
Projects
Status: Release 🌈
Development

No branches or pull requests

3 participants