Author Topic: Exiftool still trying to write -photools:cameraname=  (Read 82 times)

ubacher

  • Super Hero
  • ****
  • Posts: 1949
Exiftool still trying to write -photools:cameraname=
« on: March 16, 2019, 08:55:29 PM »
I finally upgraded today to 2019.2.4. I skipped 2019.2.2!

Now I find that the problem with exiftool writing -photools:cameraname= still exists. I suspect that this
might be caused by having skipped 2019.2.2!
If so, what is the easiest way to fix this. Update some exiftool template files?

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21488
Re: Exiftool still trying to write -photools:cameraname=
« Reply #1 on: March 17, 2019, 09:05:47 AM »
This will vanish once you have written the file. Did you try that.
There may still be some left-overs in your database in unwritten files.

ubacher

  • Super Hero
  • ****
  • Posts: 1949
Re: Exiftool still trying to write -photools:cameraname=
« Reply #2 on: March 17, 2019, 11:52:42 AM »
I experience this when I import new files!

ubacher

  • Super Hero
  • ****
  • Posts: 1949
Re: Exiftool still trying to write -photools:cameraname=
« Reply #3 on: March 17, 2019, 05:24:52 PM »
I rename the files and add some metadata via a script. This causes the writing of cameraname.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21488
Re: Exiftool still trying to write -photools:cameraname=
« Reply #4 on: March 17, 2019, 05:48:52 PM »
I have renamed some files and updated metadata via an app. No cameraname.


Does this cause an error? A warning? Are your files not written back properly? What is the actual problem?

You have to tell us a lot more about what you are doing in your script, where you rename the file, what other metadata was changed.
The source code of your script (strip it down to the smallest possible bit - I have a backlog of several weeks of stuff users have sent to me for analysis).
« Last Edit: March 17, 2019, 05:55:55 PM by Mario »

ubacher

  • Super Hero
  • ****
  • Posts: 1949
Re: Exiftool still trying to write -photools:cameraname=
« Reply #5 on: March 17, 2019, 08:37:13 PM »
I narrowed it down:

Take a newly ingested file.
Rename it - the yellow pencil will show that preservedFilename has changed.
Now change some other writeable metadata (I changed CREATOR) using the metadata panel.
Now the yellow pencil shows that PresevedFileName, Creator, and cameraname have changed.

So it seems that the cameraname is added when preservedFileName has already changed and another metadata is changed.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21488
Re: Exiftool still trying to write -photools:cameraname=
« Reply #6 on: March 18, 2019, 02:09:14 PM »
Thanks, this was helpful to hunt this bug down.

It happens only in combination with file renaming and the preservedFileName tag. This is special, as is the photools.com synthetic camera name tag.
While working on this I've also identified an issue where a rename of a file after the camera name has already been set (mostly, during a forced rescan metadata) could wipe the camera name. It is automatically recreated with the next metadata update (e.g. the user changing something in the MD panel), but nevertheless.