Skip to content
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

aves internal mediascanner for jpg files: Try to harvest tags, title, description, geo, date from multible sources #1218

Closed
k3b opened this issue Oct 4, 2024 · 1 comment
Labels
type:feature New feature or request

Comments

@k3b
Copy link

k3b commented Oct 4, 2024

I have nearly 22000 jpg photos in 800 folders/albums on my phone and on my tablet.

Many of them have meta data tags, title, description, geo, date in different exif/iptc/xmp fields.

Example:

Some Photos got their "tags" in the microsoft-windows-explorer that were stored in Exif.XPKEYWORDS, other use xmp.Tags or the standard Iptc.KEYWORDS.

It would be great if the aves-media scaner tries to harvest it-s properties from different sources (exif/iptc/xmp)
Example: If tags are not found in Iptc.KEYWORDS try to get them from xmp.Tags and if not found get them from Exif.XPKEYWORDS

In my not-maintained-anymore-app aPhotoManger i used these (taken from https://github.com/k3b/APhotoManager/wiki/Metadata#mapping under de.k3b.media.PhotoPropertiesImageReader)

de.k3b.media.PhotoPropertiesImageReader

property #1 #2 #3 #4 #5 #6 #7 #8 #9
DateTimeTaken ExifSubIFD.DATETIME_ORIGINAL ExternalXmp.DateTimeTaken InternalXmp.DateTimeTaken
Latitude ExifGps.Latitude ExternalXmp.Latitude InternalXmp.Latitude
Longitude ExifGps.Longitude ExternalXmp.Longitude InternalXmp.Longitude
Title ExternalXmp.Title Exif.XPTITLE IptcDirectory.TAG_HEADLINE InternalXmp.Title
Description Exif.IMAGE_DESCRIPTION ExternalXmp.Description Exif.XPCOMMENT Exif.USER_COMMENT JpegComment.COMMENT InternalXmp.Description Iptc.CAPTION
Tags ExternalXmp.Tags Exif.XPKEYWORDS Iptc.KEYWORDS InternalXmp.Tags
Visibility Exif.XPKEYWORDS(PRIVATE) ExternalXmp.apm.Visibility InternalXmp.apm.Visibility
Rating ExternalXmp.Rating Exif.RATING InternalXmp.Rating
  • internalXmp means xmp embedded inside the jpg file
  • externalXmp means external xmp sidecar file

Related tickets:

@k3b k3b added the type:feature New feature or request label Oct 4, 2024
@deckerst
Copy link
Owner

deckerst commented Oct 4, 2024

// set `KEY_DATE_MILLIS` from these fields (by precedence):

// return description from these fields (by precedence):

  • Date (by precedence):

    • Exif / DATETIME_ORIGINAL
    • Exif / DATETIME
    • XMP / xmp:CreateDate
    • XMP / photoshop:DateCreated
    • PNG / TIME / LAST_MODIFICATION_TIME
    • Video / METADATA_KEY_DATE
  • Title (by precedence):

    • XMP / dc:title
    • IPTC / object-name
  • Description (by precedence):

    • XMP / dc:description
    • IPTC / caption-abstract
    • Exif / UserComment
    • Exif / ImageDescription
  • Tags (by precedence):

    • XMP / dc:subject
    • IPTC / keywords
  • Rating (by precedence):

    • XMP / xmp:Rating
    • XMP / MicrosoftPhoto:Rating

@deckerst deckerst closed this as completed Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants