XMP Tags for Lightroom 3: Lens corrections + Noise reduction

Started by jveyck, April 05, 2011, 09:03:14 AM

Previous topic - Next topic

jveyck

Hello,

for Adobe Lightroom 3 I needed the possibility to write XMP lens correction tags (XMP:crs) via the Image::Exiftool API.

These are not yet defined in ExifTool 8.50. Therefore I defined them and 3 new noise reduction tags via a user configuration file.

Perhaps these are useful for others too

Wolfgang

My ".ExifTool_config" looks like this:

# new tags for Lightroom 3: Panels "Develop/Lens Corrections" and "Develop/Detail"
# Wolfgang Guelcker, 20110405

%Image::ExifTool::UserDefined = (
    # XMP tags may be added to existing namespaces:
    'Image::ExifTool::XMP::crs' => {

        # Lightroom 3 - Process Version

        ProcessVersion                       => { Writable => 'real'    },

        # Lightroom 3 - Lens Corrections Panel

        LensProfileEnable                    => { Writable => 'integer' },
        LensProfileSetup                     => { },
        LensProfileName                      => { },
        LensProfileFilename                  => { },
        LensProfileDigest                    => { },
        LensProfileDistortionScale           => { Writable => 'integer' },
        LensProfileChromaticAberrationScale  => { Writable => 'integer' },
        LensProfileVignettingScale           => { Writable => 'integer' },
                                             
        LensManualDistortionAmount           => { Writable => 'integer' },
        PerspectiveVertical                  => { Writable => 'integer' },
        PerspectiveHorizontal                => { Writable => 'integer' },
        PerspectiveRotate                    => { Writable => 'real'    },
        PerspectiveScale                     => { Writable => 'integer' },
       
        CropConstrainToWarp                  => { Writable => 'integer' },     

        # Lightroom 3 - Detail Panel (Noise reduction)

        LuminanceNoiseReductionDetail        => { Writable => 'integer' },
        LuminanceNoiseReductionContrast      => { Writable => 'integer' },
        ColorNoiseReductionDetail            => { Writable => 'integer' },
    },
);


Wolfgang Guelcker

Phil Harvey

Hi Wolfgang,

Thanks!  I wasn't aware of these.

Do you have a sample XMP file you can provide?  I'm guessing that the LensProfile (and maybe some of the other tags) should be defined as structures.

Please let me know if you find any more tags I am missing.

- Phil

Edit: No need to provide a sample, I found one on Flickr.  You are right, they are flat tags.  These will appear in ExifTool 8.55 when it is released.  Thanks!

Edit2: Also found XMP-aux:ApproximateFocusDistance and XMP-crs:GrainAmount that I was missing.
...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 ($).