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

update to 12.87 and add ContainerDirectory tag #189

Closed

Conversation

lukashass
Copy link

@lukashass lukashass commented Jul 11, 2024

Context

immich-app/immich#10374

Why

exiftool 12.85 changed the priority of the Directory tag extraction, so it never returns structured data.

In 12.87 the structured data is available as ContainerDirectory.

import { ExifTool } from 'exiftool-vendored';

const exiftool = new ExifTool({ exiftoolPath: '/Image-ExifTool-12.87/exiftool' });

const tags = await exiftool.read('/PXL_20240413_112841935.MP.jpg', {
  readArgs: ['-struct'],
});

console.log(tags.ContainerDirectory);
/*
[
  { Item: { Mime: 'image/jpeg', Semantic: 'Primary' } },
  { Item: { Length: 59107, Mime: 'image/jpeg', Semantic: 'GainMap' } },
  {
    Item: {
      Length: 3127491,
      Mime: 'video/mp4',
      Padding: 0,
      Semantic: 'MotionPhoto'
    }
  }
]
*/

TODO

  • update exiftool-vendored.pl and exe to 12.87
  • maybe remove the Container tag because that seems to be the same judging by the example

@mceachen
Copy link
Member

Hey, thanks for doing this research! The next release updates to 12.89 and includes this new interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants