ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Elainedabo on November 08, 2020, 11:22:33 AM

Title: Editing the lens name of records with Sony-Camera
Post by: Elainedabo on November 08, 2020, 11:22:33 AM
Hi,

I have been using the exiftool for some time (Windows 10 user). So far I have used the software to edit photos taken with Canon cameras. For editing the lens name I use the following command

"-exif:LensModel="Canon EF 40mm f/2.8 STM" -overwrite_original"

After modification ExifTool displays the field "LensModel" with the entry "Canon EF 40mm f/2.8 STM".

After import into Lightroom, the edited lens name is displayed there in the same way.


For some time I also take pictures with a Sony camera.

When using the above 40mm lens from Canon connected to the Sony-cam via the adapter from Sigma, the lens is displayed in the raw data with the designation "DT 40mm F2.8 SAM".

After modification ExifTool displays the field "LensModel" with the entry "Canon EF 40mm f/2.8 STM" (as desired). After import into Lightroom, however, the original designation "DT 40mm F2.8 SAM" appears again.

In the data field list of the exiftool I found the entry "DT 40mm F2.8 SAM" in another field called ,,Lens".

It seems that with Sony photos this data field ,,Lens" is imported into Lightroom and not the field ,,LensModel".

I tried to change this data field with the following command, but the entry was not changed:

,,-exif:Lens="Canon EF 40mm f/2.8 STM" -overwrite_original"

Can anyone help me?

Thanks
Title: Re: Editing the lens name of records with Sony-Camera
Post by: StarGeek on November 08, 2020, 11:28:59 AM
See FAQ #3 (https://exiftool.org/faq.html#Q3).

If you run the command listed there on the file, I suspect that you will find that the lens data you're looking at might be in a different group, possibly a Canon MakerNotes tag.  This might not be a tag which will accept simple strings.
Title: Re: Editing the lens name of records with Sony-Camera
Post by: Elainedabo on November 09, 2020, 02:08:40 PM
Hi,

in the data group "XMP" there are two fields "Lens" and "Lens Model". I would like to try to change the content of these two fields. Which command i have to use?

Thanks
Title: Re: Editing the lens name of records with Sony-Camera
Post by: StarGeek on November 09, 2020, 03:39:39 PM
Try
exiftool -XMP:Lens="Lens name" -XMP:LensModel="Lens Model" /path/to/files/
Title: Re: Editing the lens name of records with Sony-Camera
Post by: Elainedabo on November 11, 2020, 05:30:58 PM
Hi,

many thanks for the hint. It worked.  :) :) :)


The fields "Lens Model" and "Lens" are changed in the Exiftool. And Lightroom the changed lens name is displayed.