Author Topic: EXIF Editing  (Read 25833 times)

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: EXIF Editing
« Reply #15 on: April 03, 2020, 11:05:34 PM »
I am not sure how PM maps the various EXIF/XMP fields to it own variables.

Yes, it would be interesting to know...
For example, I have a Canon CR2 photo, or I see well on all the software "Canon EF 75-300mm f/4-5.6 USM" and PM6 insists on showing me "EF75-300mm f/4-5.6 USM" !!!

 >:(

Note that a popular use of Code Replacements in Photo Mechanic is to fine tune how lens EXIF is displayed for exactly this reason. 

Here is an example of a Code Replacement file. You can now make these in Google sheets and download as Tab Separated Values file (.tsv).   (Note the "//" indicates a comment)

Hello MickO,

Thank you for your help  ;)
Yes, that's what I did... it's not really a problem for me, it's just to help the community.
What is strange is that this is the only photo that presents this problem.
It's also my only photo made with a Canon 50D.
What amazes me is that {lenstype} does not give the right lens ... As if {lenstype} was not looking for the right variable in EXIF ...
I attach the photo, if it helps...

https://send.firefox.com/download/50397cc841104495/#I83sO7JygFedWACFSax8qw
French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline mklass

  • Sr. Member
  • ****
  • Posts: 377
    • View Profile
    • Mick Klass Photography
Re: EXIF Editing
« Reply #16 on: April 06, 2020, 09:08:07 AM »

In NEF files the PM6 lens type variable is still returning "Manual Lens No CPU" when I use the {lt} variable anywhere in PM (such as Info Text, IPTC dialog field, Contact Sheet Label).

JPG and DNG s appear to be modified and display properly AS LONG AS THEY WERE NOT EDITED WITH ANOTHER EXIF EDITOR. For some reason, those that I attempted to modify with another editor do not display properly in PM even after dropping them on the EXIFTool scrips.

I have attached the app and JPG file I have changed successfully, I had previously sent Kirk a file that did not show correctly in PM. I could send you that and a NEF example, but the file size is too large to attach to a forum post.

Offline Mick O (Camera Bits)

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 553
    • View Profile
    • Camera Bits
Re: EXIF Editing
« Reply #17 on: April 06, 2020, 11:34:51 AM »
MK, that JPG you attached does not have the LensModel EXIF tag set, however the ImageSource EXIF tag is set to: "28mm f/3.5 Lensbaby Trio Soft Focus" and LensSpec EXIF tag is "28mm f/3.5 MF"
so if you use the {source} variable in PM, you will see the value there.

I am not sure about the Automator app you attached. When i tried it at first, it did not work. But, when I edited it to remove the serialnumber flag entirely, it worked for me.  However, I can't tell if you have exiftool in the same location on your system as it is in mine. If exiftool is in /usr/local/bin/exiftool on your system then it should work.

I don't know if this was helpful at all.

-Mick
Mick O
Camera Bits

Offline Mick O (Camera Bits)

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 553
    • View Profile
    • Camera Bits
Re: EXIF Editing
« Reply #18 on: April 06, 2020, 11:35:54 AM »
What amazes me is that {lenstype} does not give the right lens ... As if {lenstype} was not looking for the right variable in EXIF ...
I attach the photo, if it helps...

https://send.firefox.com/download/50397cc841104495/#I83sO7JygFedWACFSax8qw

Unfortunately the attachment expired before I could check it out   -Mick
Mick O
Camera Bits

Offline mklass

  • Sr. Member
  • ****
  • Posts: 377
    • View Profile
    • Mick Klass Photography
Re: EXIF Editing
« Reply #19 on: April 06, 2020, 11:50:09 AM »
MK, that JPG you attached does not have the LensModel EXIF tag set, however the ImageSource EXIF tag is set to: "28mm f/3.5 Lensbaby Trio Soft Focus" and LensSpec EXIF tag is "28mm f/3.5 MF"
so if you use the {source} variable in PM, you will see the value there.

I am not sure about the Automator app you attached. When i tried it at first, it did not work. But, when I edited it to remove the serialnumber flag entirely, it worked for me.  However, I can't tell if you have exiftool in the same location on your system as it is in mine. If exiftool is in /usr/local/bin/exiftool on your system then it should work.

Mick:

I use the Source field to add manual lens data, and will also use the {lt} variable in the Source field to copy the automatic lens data so I have lens info all in one field. It a kludge, but it works. 

Yes, I have EXIF tool in the same folder that you do.

-Mick

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: EXIF Editing
« Reply #20 on: April 06, 2020, 12:08:27 PM »
What amazes me is that {lenstype} does not give the right lens ... As if {lenstype} was not looking for the right variable in EXIF ...
I attach the photo, if it helps...

https://send.firefox.com/download/50397cc841104495/#I83sO7JygFedWACFSax8qw

Unfortunately the attachment expired before I could check it out   -Mick

 ;)

https://send.firefox.com/download/443735f03e722e90/#NOaDdYW861GPxZvqlC4mtw
French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline Mick O (Camera Bits)

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 553
    • View Profile
    • Camera Bits
Re: EXIF Editing
« Reply #21 on: April 06, 2020, 12:47:10 PM »
Mick O
Camera Bits

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: EXIF Editing
« Reply #22 on: April 06, 2020, 10:34:51 PM »
 :o

Yes, at home too, yet the link is, supposedly, valid for 7 days ???
I try with transfernow

 :-[

https://www.transfernow.net/Pd7XoO042020

I'm stupid, you also have to adjust the number of downloads possible...  :-[

https://send.firefox.com/download/94414486550c64f4/#5BXnR_MPjAcpxkMkuTBZLw
French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline Mick O (Camera Bits)

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 553
    • View Profile
    • Camera Bits
Re: EXIF Editing
« Reply #23 on: April 07, 2020, 01:39:13 PM »
Yes, it would be interesting to know...
For example, I have a Canon CR2 photo, or I see well on all the software "Canon EF 75-300mm f/4-5.6 USM" and PM6 insists on showing me "EF75-300mm f/4-5.6 USM" !!!
[...]
What is strange is that this is the only photo that presents this problem.
It's also my only photo made with a Canon 50D.
What amazes me is that {lenstype} does not give the right lens ... As if {lenstype} was not looking for the right variable in EXIF ...
I attach the photo, if it helps...

So this photo in my Photo Mechanic, the {lenstype} variable is showing "EF75-300mm f/4-5.6 USM" and the EXIF for "Lens Model" is showing "Canon EF 75-300mm f/4-5.6 USM" ... so the lens seems to be correct, and as I said you can use Code Replacements to tweak how that appears.  You mentioned that {lenstype} was NOT showing the correct lens?  I noticed that there is also some EXIF label in there that shows

Code: [Select]
Label Name 4                    : Kamanjab, Felides, Canon EOS 1D, Canon EF 70-200mm f/2.8L USM
is that what you meant about showing the wrong lens? I am not sure what wrote that tag into EXIF, but Photo Mechanic is not using that for {lenstype}
Mick O
Camera Bits

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: EXIF Editing
« Reply #24 on: April 07, 2020, 11:07:59 PM »
Hello MickO,

Yes, it would be interesting to know...
For example, I have a Canon CR2 photo, or I see well on all the software "Canon EF 75-300mm f/4-5.6 USM" and PM6 insists on showing me "EF75-300mm f/4-5.6 USM" !!!
[...]
What is strange is that this is the only photo that presents this problem.
It's also my only photo made with a Canon 50D.
What amazes me is that {lenstype} does not give the right lens ... As if {lenstype} was not looking for the right variable in EXIF ...
I attach the photo, if it helps...

So this photo in my Photo Mechanic, the {lenstype} variable is showing "EF75-300mm f/4-5.6 USM" and the EXIF for "Lens Model" is showing "Canon EF 75-300mm f/4-5.6 USM" ... so the lens seems to be correct

I'm sorry but for me "EF75-300mm f/4-5.6 USM" is not at all the same as "Canon EF 75-300mm f/4-5.6 USM"
Where's {lenstype} going to look for this field?

and as I said you can use Code Replacements to tweak how that appears.

Yes, as already said, that's what I do... I use the {source} field to correctly reformat the name of the lenses.

You mentioned that {lenstype} was NOT showing the correct lens?  I noticed that there is also some EXIF label in there that shows

Code: [Select]
Label Name 4                    : Kamanjab, Felides, Canon EOS 1D, Canon EF 70-200mm f/2.8L USM
is that what you meant about showing the wrong lens? I am not sure what wrote that tag into EXIF, but Photo Mechanic is not using that for {lenstype}

Yes, this photo is not of me.
I didn't remember the camera model and the lens model.
That's the reason for the fields with bad data.
(This photo has been catalogued successively by Iview, PhotoSupreme, Mediapro, Lightroom... PM5 and PM6  :-* )

Kind regards

(I hope to be comprehensible with my English "Bing Translator";)
« Last Edit: April 07, 2020, 11:35:55 PM by Dub »
French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: EXIF Editing
« Reply #25 on: April 07, 2020, 11:42:03 PM »
Ah... there is a third photo lens field, special CANON...
{lenstype} must be that one...
French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: EXIF Editing
« Reply #26 on: April 07, 2020, 11:45:54 PM »
This would mean that, depending on the type of camera, there would be up to 3 different fields to describe the photo lens ?

 ??? ??? ???
French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: EXIF Editing
« Reply #27 on: April 08, 2020, 06:27:02 AM »
I saw Kirk's answer on this thread

http://forums.camerabits.com/index.php?topic=13228.0

I guess it's the same problem here...

French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: EXIF Editing
« Reply #28 on: April 16, 2020, 12:24:02 PM »
Hello,

the latest version of PM6 (4538) solved the problem... NEF and CR2...
Good job, thank you very much...

 ;)
French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: EXIF Editing
« Reply #29 on: April 16, 2020, 12:37:15 PM »
the latest version of PM6 (4538) solved the problem... NEF and CR2...
Good job, thank you very much...

 ;)

Thanks for confirming.

-Kirk