Need help to add Lens Type to Sony A7R IV

Started by romanholiday, August 21, 2022, 01:44:44 AM

Previous topic - Next topic

romanholiday

Hi,

I am using a fully manual Chinese lens with no EXIF information whatsoever. All I want to do is to add the type of lens used, so that I remember which lens was used. I tried:-

exiftool '-LensType=Laowa 9mm Ultra Wide' *

And it gave an error.

So how do I do it?

Thanks!  :)

StarGeek

LensType, except in the case of some MakerNotes, is usually not writable.  Additionally, it can only be set to specific values, not arbitrary strings.

The tags you probably want to write are LensMake/LensModel

The definitions of these are
LensMake : This tag records the lens manufacturer
LensModel : This tag records the lens's model name and model number
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

romanholiday

It works!!!  ;D

Thank you StarGeek. I just added the LensModel tag:-

exiftool '-LensModel= Laowa 9mm Ultra Wide' test-photo.ARW

And I got this:-

Warning: [minor] Oversized SubIFD StripByteCounts (122419200 bytes, but expected 107116800) - test-photo.ARW
    1 image files updated

Should I worry about the warning?  ???

StarGeek

In a previous post, Phil said
Quote from: Phil Harvey on September 21, 2021, 02:05:44 PMThis warning is not uncommon, and may safely be ignored.  It indicates there is more data in the image strips than there should be.  It seems that some cameras write extra padding or something.  However, Undersized data is a problem, so the warning isn't minor in this case.

- Phil

So it should be ok as there is more data than what was expected.

Though personally, I am bit cautious when it comes to even minor warnings in RAW file types and I would make sure you have proper backups and test some of the files afterwards.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

romanholiday

#4
The files seem to work fine, but I have kept backups of the originals anyway.

One more quick question. Is there a way to write tags without changing the file's modified date? So that when I am browsing the files the date of the files remains the same as the original?

Thanks.

P.S. I tried -P and it didn't work: exiftool -P '-LensModel= Laowa 9mm Ultra Wide' test-photo.ARW

Phil Harvey

-P is the correct option.  The system file modification date/time (shown as the ExifTool FileModifyDate tag) shouldn't change when you use this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).