News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Windows lens tag

Started by jgalea, March 23, 2021, 02:47:57 PM

Previous topic - Next topic

jgalea

Does anyone know what tag I need to use to have Windows identify the lens that was used? Under advanced photo, Lens maker, and Lens model are showing up as blank under windows 10, I'd love to fix that but need to know if anyone has figured out what tag Windows is paying attention to?

StarGeek

Lens makerXMP-microsoft:LensManufacturer
Lens modelXMP-microsoft:LensModel
Flash makerXMP-microsoft:FlashManufacturer
Flash modelXMP-microsoft:FlashModel
Camera senal number  XMP-microsoft:CameraSerialNumber

Looks like it's time for me to update the Windows metadata post.  There's a lot more in the Property Details tab than there used to be.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Luuk2005

Greetings StarGeek, this was my experiment...
exiftool -XMP:*ens*=xxx -IPTC:*ens*=iii -Exif:*ens*=eee TestFile.jpg

Its because Im hopeful to write most 'ens' tags, and lucky to find XMP:XMP-microsoft:Image:LensManufacturer
But of course EXIF:ExifIFD:Image:Main:LensModel does override  XMP:XMP-microsoft:Image:LensModel (so nothing presented for Windows "Lens maker").
So is there any way to write all tags with a filespec like this, without "explictly specifying" like the manual says (kind of like using -a to read them)?
Many thanks again!
Windows8.1-64bit, exiftool-v12.11(standalone), sed-v4.0.7

jgalea

Thanks StarGeek, that worked perfectly!

StarGeek

Quote from: Luuk2005 on March 23, 2021, 07:17:30 PM
But of course EXIF:ExifIFD:Image:Main:LensModel does override  XMP:XMP-microsoft:Image:LensModel (so nothing presented for Windows "Lens maker").

Hmmm... I don't have that here.  I set EXIF:LensModel and nothing shows up under the Details tab.

QuoteSo is there any way to write all tags with a filespec like this, without "explictly specifying" like the manual says (kind of like using -a to read them)?

I don't believe so. I use a lot of shortcut tags to make sure I write all the similar tags I want to.  And there's always the MWG tags for the ones covered by that and the xxx2xxx.args files to synchronize the tags.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Luuk2005

Greeting StarGeek, its because Im giving another poor explanation.
What I mean is that because EXIF:LensModel overrides XMP:LensModel, that -XMP:*ens*=xxx wont write XMP:LensModel.
But -Exif:*ens*=eee does always write EXIF:LensModel (so then nothing was presented for the "details tab").

Its crazy they wont include the standard Exif:LensModel for their 'Lens model', but that :XMP-microsoft: group says it all.
Many thanks again!
Windows8.1-64bit, exiftool-v12.11(standalone), sed-v4.0.7

Phil Harvey

Quote from: Luuk2005 on March 24, 2021, 12:39:14 AM
-XMP:*ens*=xxx wont write XMP:LensModel.

But it does:

> exiftool a.jpg "-xmp:*ens*=xxx"
    1 image files updated
> exiftool a.jpg -lensmodel -G1 -a
[XMP-exifEX]    Lens Model                      : xxx


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

Luuk2005

#7
Yes, Im not posted full GroupPaths, but was hoping to write $XMP:XMP-microsoft:Image:LensModel without knowing the GroupPath.
The command Im using was actually exiftool -XMP:*ens*=xxx -IPTC:*ens*=iii -Exif:*ens*=eee TestFile.jpg
So then only viewing in Windows, hoping to get either xxx|iii|eee to present for "Lens model" or "Lens maker"

It presented for Windows "Lens maker" because no other $XMP:__:LensMaker overrides the XMP-microsoft group.
But $XMP:XMP-exifEX:Camera:Main:LensModel overrides $XMP:XMP-microsoft:Image:LensModel, so nothing presents to Windows 'Lens model'.
So believing it was exif overriding xmp, but its good knowing that -Exif:tagspec cant override -XMP:tagspec because thats very concerning!

I still would love a way to write all -Group:*tagspec*, if thats to be possible?
Many thanks again!
Windows8.1-64bit, exiftool-v12.11(standalone), sed-v4.0.7

Phil Harvey

Quote from: Luuk2005 on March 25, 2021, 12:09:03 AM
I still would love a way to write all -Group:*tagspec*, if thats to be possible?

Using wildcards will write all matching tags in the group except those that are marked as "Avoid" (see the tag documentation for these).  You must specify these without wildcards to write them.

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