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

Output changes after modifying Lightroom image with Exiftool #129

Closed
LorenzBischof opened this issue Oct 19, 2020 · 7 comments
Closed

Output changes after modifying Lightroom image with Exiftool #129

LorenzBischof opened this issue Oct 19, 2020 · 7 comments

Comments

@LorenzBischof
Copy link

Description

I am observing weird behavior: after changing a single tag in an image (from Lightroom) with Exiftool, the ExifReader output changes dramatically.

How to reproduce

  1. Check Exif data of Lightroom exported picture
  2. Modify with Exiftool (I think it doesn't matter which tag). I used: exiftool '-RegionAreaH=0.55270' IMG_6253.jpg
  3. Check Exif data

What I expected would happen:

The output should stay the same, because I did not modify the value of the tag (set the same value as before)

What really happened:

The output of ExifReader changed:

Lighroom:
IMG_6253_working
image

After Exiftool modification:
IMG_6253_not-working
image

Initially reported at bpatrik/pigallery2#191

@LorenzBischof LorenzBischof changed the title Lighroom vs Exiftool Output changes after modifying Lightroom image with Exiftool Oct 19, 2020
@mattiasw
Copy link
Owner

Hi!

I just checked very quickly so this may not be the full picture, but the XML in the file that contains the tags is indeed changed by the exiftool command, and by quite a lot. See attached files. So if I didn't miss anything here I would say it is expected behavior.
before.txt
after.txt

@LorenzBischof
Copy link
Author

Thank you, then I have to figure out why exiftool changes the metadata.

@mattiasw
Copy link
Owner

I found this thread that touches on that subject. Not sure it helps but maybe it can give some clues. https://exiftool.org/forum/index.php?topic=8159.0

@LorenzBischof
Copy link
Author

LorenzBischof commented Oct 20, 2020

As far as I can see Exiftool converts the data to use rdf:parseType="Resource" See: https://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-parsetype-resource Is there any way to use Exifreader and ignore the underlying structure (because they both represent the same data)?

edit: I saw that post and I don't think it helps here

@LorenzBischof LorenzBischof reopened this Oct 20, 2020
@mattiasw
Copy link
Owner

I looked into the code some more and I believe you're correct. There is a bug in the handling of lists where these different ways to represent the same date is just never converted. Unfortunately a fix would be a breaking change. For example, the code referenced in the PiGallery2 ticket you linked would definitely break (the rdf:Description should not be exposed like that and would be one of the things that would change). This should of course be fixed but it would then have to go into version 4 which I can't say a timeline for.

@LorenzBischof
Copy link
Author

LorenzBischof commented Oct 21, 2020

Ok, thanks for your reply and the awesome work you are doing here! I will create a pull request for Pigallery2.

mattiasw added a commit that referenced this issue Oct 31, 2021
mattiasw added a commit that referenced this issue Oct 31, 2021
mattiasw added a commit that referenced this issue Oct 31, 2021
mattiasw added a commit that referenced this issue Oct 31, 2021
mattiasw added a commit that referenced this issue Oct 31, 2021
@mattiasw
Copy link
Owner

This is fixed in version 4.0.0. The two files now has the same output. Thanks for reporting!

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

No branches or pull requests

2 participants