DxO PhotoLab lens correction still detects lens after deleting all EXIF

Started by JobWellDone, June 09, 2023, 05:15:21 AM

Previous topic - Next topic

JobWellDone

I have saved this JPEG 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.


Phil Harvey

I think this is a question for PhotoLab.

- Phil

P.S. You don't need -xmp= -exif= if you are using -all=
...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 ($).

greybeard

Quote from: JobWellDone on June 09, 2023, 05:15:21 AMI have saved this JPEG 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.

JobWellDone

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.
1.jpg


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.jpg
however 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



StarGeek

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
Quoteor to exclude groups from being deleted when deleting all information (eg. -all= --exif:all deletes all but EXIF information).
"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

JobWellDone

Thanks, this works, any advice how to write XMP tags do i need to use config for it?

Phil Harvey

You only need to use a config file to write XMP tags that aren't already pre-defined (see here).  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
...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 ($).