I have saved this JPEG (https://www.flickr.com/photos/sonyalphablog/51190406183/in/album-72157719225530516/) as AF.jpg, its made with Samyang 12mm F2 AF lens, if i open in DxO PhotoLab it offers automatic lens profile distortion correction.
Deleted all metadata using command
exiftool.exe -all= -xmp= -exif= c:\images\AF.jpg
and opened it in in PhotoLab again and it is still offering lens correction, i dont understand how it knows what lens made this photo without EXIF?
Reason i am asking this is that i have Samyang 12mm F2 MF lens and i want to use DxO Lens Correction Profile from AF lens in images made with MF lens.
Tried
exiftool.exe -FocalLength=12 -FocalLengthIn35mmFilm="18" -LensModel="SAMYANG AF 12mm F2.0" -LensInfo="12mm f/2" c:\images\MF.jpg
however PhotoLab still does not offer profile correction for MF.jpg.
I think this is a question for PhotoLab.
- Phil
P.S. You don't need -xmp= -exif= if you are using -all=
Quote from: JobWellDone on June 09, 2023, 05:15:21 AMI have saved this JPEG (https://www.flickr.com/photos/sonyalphablog/51190406183/in/album-72157719225530516/) as AF.jpg, its made with Samyang 12mm F2 AF lens, if i open in DxO PhotoLab it offers automatic lens profile distortion correction.
Deleted all metadata using command
exiftool.exe -all= -xmp= -exif= c:\images\AF.jpg
and opened it in in PhotoLab again and it is still offering lens correction, i dont understand how it knows what lens made this photo without EXIF?
I just tried that test and PhotoLab did not recognize the lens (or the camera) when the EXIF was deleted.
I get the message "No DxO Optics Module is available for this image".
What makes you think it is offering lens correction? I would guess the jpg already has some sort of lens correction applied.
Quote from: Phil Harvey on June 09, 2023, 06:47:08 AMP.S. You don't need -xmp= -exif= if you are using -all=
Thanks Phil
How would i go about deleting all other tags except EXIF if i do
exiftool.exe -all= -exif=all AF.jpg then all tags are removed including EXIF.
Quote from: greybeard on June 09, 2023, 09:14:49 AMI just tried that test and PhotoLab did not recognize the lens (or the camera) when the EXIF was deleted.
I get the message "No DxO Optics Module is available for this image".
You totally right, when i tested and even renamed the file Photo lab was still offering the correction.
PhotoLab caches metadata guess that was an issue in my first test, so restart was needed.

I found that if i strip all EXIF tag from image profile correction is still offered, however if i strip all XMP tags then PhotoLab is not offering profile correction anymore.
Tried to write XMP tags to my camera image with command
exiftool.exe -xmp-Camera:LensInfo="12mm f/2" -xmp-Camera:Lens="SAMYANG AF 12mm F2.0" -FocalLength="12" -FocalLengthIn35mmFilm="18" -LensModel="SAMYANG AF 12mm F2.0" -LensInfo="12mm f/2" MF.jpghowever i am getting this error
Warning: Sorry, xmp-Camera:LensInfo doesn't exist or isn't writable
Warning: Sorry, xmp-Camera:Lens doesn't exist or isn't writable
Warning: Tag 'FocalLengthIn35mmFilm' is not defined
Quote from: JobWellDone on June 09, 2023, 11:42:32 AMHow would i go about deleting all other tags except EXIF if i do exiftool.exe -all= -exif=all AF.jpg then all tags are removed including EXIF.
From the docs on the
--TAG option (https://exiftool.org/exiftool_pod.html#TAG1)
Quoteor to exclude groups from being deleted when deleting all information (eg. -all= --exif:all deletes all but EXIF information).
Thanks, this works, any advice how to write XMP tags do i need to use config for it?
You only need to use a config file to write XMP tags that aren't already pre-defined (see here (http://exiftool.org/TagNames/XMP.html)). The "XMP-Camera" namespace isn't pre-defined, but I don't think that is what you should be using. Lens and LensInfo exist in the Adobe XMP-aux namespace.
- Phil