ExifTool Forum

General => Metadata => Topic started by: astronick on May 11, 2022, 12:40:19 AM

Title: Exporting/Copying Lens Profile/Info from CR2 to TIFF file
Post by: astronick on May 11, 2022, 12:40:19 AM
Hi,

I would like to know if there is a way to export/copy Lens Profile (Lens information) from the CR2 file to TIFF file?

I created a Lens config in the jEXIFtool and tried saving it to the TIFF file but it gave me this error:

Warning: Sorry, composite:LensID doesn't exist or isn't writable
Warning: Can't convert value for Sony:LensFirmwareVersion (no PrintConvInv)
    1 image files updated

The Lens is Sigma 17-50mm f/2.8 EX DC OS HSM and the Camera is Canon 1100D so not sure where it's pulling 'Sony' from.

Please advise the right command or how can I achieve this using the GUI tool, if this is possible at all.

Thank you in advance!
Title: Re: Exporting/Copying Lens Profile/Info from CR2 to TIFF file
Post by: StarGeek on May 11, 2022, 10:27:43 AM
It's hard to say what the problem is without knowing what data you are trying to copy.  What is the contents of your "Lens Profile"?  What is it actually trying to copy?

I'm not sure what is happening with LensID.  That tag is both a Composite tag (https://exiftool.org/TagNames/Composite.html) and a XMP-aux (https://exiftool.org/TagNames/XMP.html#aux) tag.  The former is not a writable tag and the latter is a deprecated tag which is no longer in common use (see the XMP-aux link above).

As for where Sony is coming from, somewhere in your command I'm guessing that you're trying to copy LensFirmwareVersion, which is a proprietary MakerNotes tag.  It cannot be created individually, as MakerNotes can only be copied as a block.  So somewhere in the command it is attempting to create that tag and Sony is just the last in the list of attempts.

Yeah, adding -v3 (-verbose3) option (https://exiftool.org/exiftool_pod.html#v-NUM--verbose) on the command line shows exiftool trying to write to several LensFirmwareVersion tags, none of which it can do because there aren't any MakerNotes in your target file.
Writing Olympus:LensFirmwareVersion if tag exists
Not enough values specified (4 required) for Panasonic:LensFirmwareVersion
Can't convert value for Sony:LensFirmwareVersion (no PrintConvInv)
Can't convert value for Sony:LensFirmwareVersion (no PrintConvInv)
Warning: Can't convert value for Sony:LensFirmwareVersion (no PrintConvInv)


I installed jExiftoolGUI to get a better idea of what you were looking at with the lens profile.  My suggestion is rather than fill out all the data, take a look at your images and just use the data that is already in the file as a template.  For example, if LensID/LensFirmwareVersion isn't in your source image, don't add them to your lens profile.  This would be FAQ #3 (https://exiftool.org/faq.html#Q3) on the command line.
Title: Re: Exporting/Copying Lens Profile/Info from CR2 to TIFF file
Post by: astronick on May 11, 2022, 04:04:26 PM
Thank you for such a detailed analysis!

I will try to take the screenshot of what I was trying to do and share it here, if that would help.

I tried to copy the Lens data (Lens Configuration) data from the CR2 file to the TIFF file. I did copy the Lens Firmware Version from what I could recall so may be I should just skip it (though it was present in the CR2 file)?

The whole purpose of me doing this is to populate Lens Profile in LR for the TIFF images. With TIFF images, I notice that only limited Lens/Lens Profiles are available and mine is not in the list.

Hope that gives you some context.