How to fix "Invalid Metadata data" warning

Started by cowwoc, February 10, 2021, 12:00:00 AM

Previous topic - Next topic

cowwoc

Hi Phil,

I've got a file with the following metdata:


ExifTool Version Number         : 12.14
File Name                       : 0Z7A8614-2.jpg
Directory                       : C:/photos/new/2019/2019-02-21-Leah Daycare Photos
File Size                       : 934 KiB
File Modification Date/Time     : 2021:02:09 23:48:24-05:00
File Access Date/Time           : 2021:02:09 23:58:16-05:00
File Creation Date/Time         : 2021:02:09 23:47:31-05:00
File Permissions                : rw-rw-rw-
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Photometric Interpretation      : RGB
Make                            : Canon
Camera Model Name               : Canon EOS 5D Mark IV
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 3
X Resolution                    : 300
Y Resolution                    : 300
Resolution Unit                 : inches
Software                        : Adobe Photoshop 21.0 (Windows)
Modify Date                     : 2021:02:09 23:45:11
Exposure Time                   : 1/160
F Number                        : 9.0
Exposure Program                : Manual
ISO                             : 250
Exif Version                    : 0230
Date/Time Original              : 2019:02:21 11:43:43
Create Date                     : 2019:02:21 11:43:43
Shutter Speed Value             : 1/160
Aperture Value                  : 9.0
Exposure Compensation           : 0
Max Aperture Value              : 1.8
Metering Mode                   : Spot
Flash                           : On, Fired
Focal Length                    : 50.0 mm
Sub Sec Time Original           : 00
Sub Sec Time Digitized          : 00
Flashpix Version                : 0100
Color Space                     : Uncalibrated
Exif Image Width                : 2880
Exif Image Height               : 3600
Focal Plane X Resolution        : 1866.666667
Focal Plane Y Resolution        : 1866.666667
Focal Plane Resolution Unit     : cm
Custom Rendered                 : Normal
Exposure Mode                   : Manual
White Balance                   : Auto
Scene Capture Type              : Standard
Compression                     : JPEG (old-style)
Thumbnail Offset                : 832
Thumbnail Length                : 3803
Current IPTC Digest             : 4816182698a911024065c2deb7fa0054
Coded Character Set             : UTF8
Envelope Record Version         : 4
Application Record Version      : 4
Time Created                    : 11:43:43-05:00
Digital Creation Date           : 2019:02:21
IPTC Digest                     : 9e05b0d9c30f6cb1860a720e4771b724
Displayed Units X               : inches
Displayed Units Y               : inches
Print Style                     : Centered
Print Position                  : 0 0
Print Scale                     : 1
Global Angle                    : 30
Global Altitude                 : 30
Slices Group Name               : 0Z7A8614
Num Slices                      : 1
Pixel Aspect Ratio              : 1
Photoshop Thumbnail             : (Binary data 3803 bytes, use -b option to extract)
Has Real Merged Data            : Yes
Writer Name                     : Adobe Photoshop
Reader Name                     : Adobe Photoshop 2020
Photoshop Quality               : 8
Photoshop Format                : Standard
Progressive Scans               : 3 Scans
XMP Toolkit                     : Image::ExifTool 12.14
Approximate Focus Distance      : 1.67
Firmware                        : 1.0.4
Flash Compensation              : 0
Image Number                    : 0
Lens                            : EF50mm f/1.8 STM
Lens Info                       : 50mm f/?
Lens Serial Number              : 00001a9fd2
Serial Number                   : 072153000357
Format                          : image/jpeg
Lens Model                      : EF50mm f/1.8 STM
Color Mode                      : RGB
Date Created                    : 2019:02:21 11:43:43
ICC Profile Name                : sRGB
Legacy IPTC Digest              : 9E05B0D9C30F6CB1860A720E4771B724
Creator Tool                    : Adobe Photoshop Lightroom Classic 8.2 (Macintosh)
Metadata Date                   : 2021:02:09 23:45:11-05:00
Derived From Document ID        : 95F166E9862B9B868E9D9F7336E573FD
Derived From Original Document ID: 95F166E9862B9B868E9D9F7336E573FD
Document ID                     : xmp.did:d59c94ff-c57f-4446-af8c-b7bf91a78951
History Action                  : derived, saved, saved
History Parameters              : converted from image/x-canon-cr2 to image/jpeg, saved to new location
History Changed                 : /, /
History Instance ID             : xmp.iid:d59c94ff-c57f-4446-af8c-b7bf91a78951, xmp.iid:53c7d18c-6510-0e44-97d1-a29772af3182
History Software Agent          : Adobe Photoshop Lightroom Classic 8.2 (Macintosh), Adobe Photoshop 21.0 (Windows)
History When                    : 2019:02:24 17:37:05-05:00, 2021:02:09 23:45:11-05:00
Instance ID                     : xmp.iid:53c7d18c-6510-0e44-97d1-a29772af3182
Original Document ID            : 95F166E9862B9B868E9D9F7336E573FD
Already Applied                 : True
Auto Lateral CA                 : 0
Blacks 2012                     : -43
Blue Hue                        : 0
Blue Saturation                 : 0
Camera Profile                  : Adobe Standard
Camera Profile Digest           : 661433344C8532AFA5A1E9091401E43C
Clarity 2012                    : -32
Color Noise Reduction           : 25
Color Noise Reduction Detail    : 50
Color Noise Reduction Smoothness: 50
Contrast 2012                   : -21
Convert To Grayscale            : False
Crop Angle                      : 4.05403
Crop Bottom                     : 0.985824
Crop Constrain To Warp          : 0
Crop Left                       : 0.121098
Crop Right                      : 0.782807
Crop Top                        : 0.069469
Defringe Green Amount           : 0
Defringe Green Hue Hi           : 60
Defringe Green Hue Lo           : 40
Defringe Purple Amount          : 0
Defringe Purple Hue Hi          : 70
Defringe Purple Hue Lo          : 30
Dehaze                          : 0
Exposure 2012                   : +0.15
Grain Amount                    : 0
Green Hue                       : 0
Green Saturation                : 0
Has Crop                        : True
Has Settings                    : True
Highlights 2012                 : -64
Hue Adjustment Aqua             : 0
Hue Adjustment Blue             : 0
Hue Adjustment Green            : 0
Hue Adjustment Magenta          : 0
Hue Adjustment Orange           : 0
Hue Adjustment Purple           : 0
Hue Adjustment Red              : 0
Hue Adjustment Yellow           : 0
Lens Manual Distortion Amount   : 0
Lens Profile Enable             : 0
Lens Profile Setup              : LensDefaults
Look Amount                     : 1.000000
Look Group                      : Profiles
Look Name                       : Adobe Color
Look Parameters Camera Profile  : Adobe Standard
Look Parameters Convert To Grayscale: False
Look Parameters Look Table      : E1095149FDB39D7A057BAB208837E2E1
Look Parameters Process Version : 11.0
Look Parameters Tone Curve PV2012: 0, 0, 22, 16, 40, 35, 127, 127, 224, 230, 240, 246, 255, 255
Look Parameters Version         : 11.2
Look Supports Amount            : false
Look Supports Monochrome        : false
Look Supports Output Referred   : false
Look UUID                       : B952C231111CD8E0ECCF14B86BAA7077
Luminance Adjustment Aqua       : 0
Luminance Adjustment Blue       : 0
Luminance Adjustment Green      : 0
Luminance Adjustment Magenta    : 0
Luminance Adjustment Orange     : 0
Luminance Adjustment Purple     : 0
Luminance Adjustment Red        : 0
Luminance Adjustment Yellow     : 0
Luminance Smoothing             : 0
Override Look Vignette          : False
Parametric Darks                : 0
Parametric Highlight Split      : 75
Parametric Highlights           : 0
Parametric Lights               : 0
Parametric Midtone Split        : 50
Parametric Shadow Split         : 25
Parametric Shadows              : 0
Perspective Aspect              : 0
Perspective Horizontal          : 0
Perspective Rotate              : 0.0
Perspective Scale               : 100
Perspective Upright             : 0
Perspective Vertical            : 0
Perspective X                   : 0.00
Perspective Y                   : 0.00
Post Crop Vignette Amount       : +34
Post Crop Vignette Feather      : 50
Post Crop Vignette Midpoint     : 50
Post Crop Vignette Roundness    : 0
Post Crop Vignette Style        : 1
Process Version                 : 11.0
Raw File Name                   : 0Z7A8614.CR2
Red Hue                         : 0
Red Saturation                  : 0
Saturation                      : -1
Saturation Adjustment Aqua      : 0
Saturation Adjustment Blue      : 0
Saturation Adjustment Green     : 0
Saturation Adjustment Magenta   : 0
Saturation Adjustment Orange    : 0
Saturation Adjustment Purple    : 0
Saturation Adjustment Red       : 0
Saturation Adjustment Yellow    : 0
Shadow Tint                     : 0
Shadows 2012                    : +29
Sharpen Detail                  : 25
Sharpen Edge Masking            : 0
Sharpen Radius                  : +1.0
Sharpness                       : 40
Split Toning Balance            : 0
Split Toning Highlight Hue      : 0
Split Toning Highlight Saturation: 0
Split Toning Shadow Hue         : 0
Split Toning Shadow Saturation  : 0
Color Temperature               : 5789
Tint                            : +12
Tone Curve                      : 0, 0, 255, 255
Tone Curve Blue                 : 0, 0, 255, 255
Tone Curve Green                : 0, 0, 255, 255
Tone Curve Name                 : Linear
Tone Curve Name 2012            : Linear
Tone Curve PV2012               : 0, 0, 255, 255
Tone Curve PV2012 Blue          : 0, 0, 255, 255
Tone Curve PV2012 Green         : 0, 0, 255, 255
Tone Curve PV2012 Red           : 0, 0, 255, 255
Tone Curve Red                  : 0, 0, 255, 255
Tone Map Strength               : 0
Upright Center Mode             : 0
Upright Center Norm X           : 0.5
Upright Center Norm Y           : 0.5
Upright Focal Length 35mm       : 35
Upright Focal Mode              : 0
Upright Four Segments Count     : 0
Upright Preview                 : False
Upright Transform Count         : 6
Upright Version                 : 151388160
Version                         : 11.2
Vibrance                        : +13
Vignette Amount                 : 0
Whites 2012                     : +15
Profile CMM Type                : Little CMS
Profile Version                 : 4.3.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2014:01:16 11:12:31
Profile File Signature          : acsp
Primary Platform                : Apple Computer Inc.
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             :
Device Model                    :
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : Little CMS
Profile ID                      : e5ad335e355d4f23ae07f61feb62bb03
Profile Description             : sRGB
Profile Copyright               : Questo profilo non presente alcune restrizioni di copyright
Media White Point               : 0.9642 1 0.82491
Chromatic Adaptation            : 1.048 0.02299 -0.05014 0.02971 0.99034 -0.01706 -0.00923 0.01501 0.75226
Red Matrix Column               : 0.43585 0.22238 0.01392
Blue Matrix Column              : 0.14302 0.06059 0.71384
Green Matrix Column             : 0.38533 0.71704 0.09714
Red Tone Reproduction Curve     : (Binary data 32 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 32 bytes, use -b option to extract)
Blue Tone Reproduction Curve    : (Binary data 32 bytes, use -b option to extract)
Chromaticity Channels           : 3
Chromaticity Colorant           : Unknown (0)
Chromaticity Channel 1          : 0.64 0.33
Chromaticity Channel 2          : 0.3 0.60001
Chromaticity Channel 3          : 0.14999 0.06
Warning                         : Invalid Metadata data
Device Model Desc               : This general purpose profile was designed by Hewlett-Packard and Microsoft and lives on as the default profile on the Internet for untagged RGB colors and used in HDTV. Most uncalibrated displays are able to display most of the colors available in sRGB, although this profile is sometimes a poor choice for printing.
Device Model Desc (en-GB)       : This general purpose profile was designed by Hewlett-Packard and Microsoft and lives on as the default profile on the Internet for untagged RGB colours and used in HDTV. Most uncalibrated displays are able to display most of the colours available in sRGB, although this profile is sometimes a poor choice for printing.
DCT Encode Version              : 100
APP14 Flags 0                   : (none)
APP14 Flags 1                   : (none)
Color Transform                 : YCbCr
Image Width                     : 2880
Image Height                    : 3600
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:4:4 (1 1)
Aperture                        : 9.0
Image Size                      : 2880x3600
Lens ID                         : EF50mm f/1.8 STM
Megapixels                      : 10.4
Scale Factor To 35 mm Equivalent: 1.8
Shutter Speed                   : 1/160
Create Date                     : 2019:02:21 11:43:43.00
Date/Time Original              : 2019:02:21 11:43:43.00
Thumbnail Image                 : (Binary data 3803 bytes, use -b option to extract)
Date/Time Created               : 2019:02:21 11:43:43-05:00
Circle Of Confusion             : 0.017 mm
Depth Of Field                  : 0.34 m (1.52 - 1.86 m)
Field Of View                   : 23.2 deg
Focal Length                    : 50.0 mm (35 mm equivalent: 87.6 mm)
Hyperfocal Distance             : 16.20 m
Light Value                     : 12.3


I would like to get rid of the "Invalid Metadata data" warning but I can't figure out how. I tried removing the "Device Model Desc" tag (since it appears close to the warning) but exiftool does not support writing this tag. I am usually able to correct metadata errors by opening such files in Photoshop and resaving them, but in this particular case it does not help.

Any ideas?

Gili

cowwoc

I just discovered that if I remove the "ICC_Profile" tag the warning goes away. But obviously I don't want to impact image color. Is there a way to rewrite this tag, stripping the bad data in the process?

cowwoc

Hmm, it looks like the problem is the ICC profile itself. I am attaching the offending file for your review. Is there any way to clean it up?

cowwoc

Okay. I found a workaround:

* Open the file in Photoshop
* Edit -> Convert to Profile
* Pick the closest matching color profile -> OK
* Save the file

In my case, both the source and destination color spaces were sRGB and I see no visual differences. I hope this helps other people who run across this kind of warning.

Phil Harvey

Hi Gili,

I'll change this warning to "Invalid ICC Metadata data" to make it a bit more obvious where it is coming from.

- 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 ($).