XMP-mix namespace

Started by blue-j, April 05, 2024, 09:06:04 PM

Previous topic - Next topic

blue-j

The Library of Congress in the US has worked with standards groups and published the Mix 2.0 schema for digital images. It's also the same namespace that FITS uses for images.

https://www.loc.gov/standards/mix/

https://www.loc.gov/standards/mix/mix.xsd

https://projects.iq.harvard.edu/fits/standard-metadata-schemas

It's just XML, and ExifTool parses a good amount presently.  I've attached a full example of Mix markup emitted from the FITS utility.  ET does this with it:

Mix Schema Location             : http://www.loc.gov/mix/v20 http://www.loc.gov/standards/mix/mix20/mix20.xsd
Mix Basic Digital Object Information Byte Order: big endian
Mix Basic Digital Object Information Compression Compression Scheme: LZW
Mix Basic Image Information Basic Image Characteristics Image Width: 1311
Mix Basic Image Information Basic Image Characteristics Image Height: 874
Mix Basic Image Information Basic Image Characteristics Photometric Interpretation Color Space: CIELab
Mix Image Capture Metadata General Capture Information Date Time Created: 2023:08:19 05:59:51.0Z
Mix Image Capture Metadata Scanner Capture Scanning System Software Scanning Software Name: Adobe Photoshop 24.7 (Macintosh)
Mix Image Capture Metadata Orientation: normal*
Mix Image Assessment Metadata Spatial Metrics Sampling Frequency Unit: in.
Mix Image Assessment Metadata Spatial Metrics X Sampling Frequency Numerator: 72
Mix Image Assessment Metadata Spatial Metrics X Sampling Frequency Denominator: 1
Mix Image Assessment Metadata Spatial Metrics Y Sampling Frequency Numerator: 72
Mix Image Assessment Metadata Spatial Metrics Y Sampling Frequency Denominator: 1
Mix Image Assessment Metadata Image Color Encoding Bits Per Sample Bits Per Sample Value: 8
Mix Image Assessment Metadata Image Color Encoding Bits Per Sample Bits Per Sample Value: 8
Mix Image Assessment Metadata Image Color Encoding Bits Per Sample Bits Per Sample Value: 8
Mix Image Assessment Metadata Image Color Encoding Bits Per Sample Bits Per Sample Unit: integer
Mix Image Assessment Metadata Image Color Encoding Samples Per Pixel: 3


or if we use -G0:1:

[XMP:XMP-mix]   Mix Schema Location             : http://www.loc.gov/mix/v20 http://www.loc.gov/standards/mix/mix20/mix20.xsd
[XMP:XMP-mix]   Mix Basic Digital Object Information Byte Order: big endian
[XMP:XMP-mix]   Mix Basic Digital Object Information Compression Compression Scheme: LZW
[XMP:XMP-mix]   Mix Basic Image Information Basic Image Characteristics Image Width: 1311
[XMP:XMP-mix]   Mix Basic Image Information Basic Image Characteristics Image Height: 874
[XMP:XMP-mix]   Mix Basic Image Information Basic Image Characteristics Photometric Interpretation Color Space: CIELab
[XMP:XMP-mix]   Mix Image Capture Metadata General Capture Information Date Time Created: 2023:08:19 05:59:51.0Z
[XMP:XMP-mix]   Mix Image Capture Metadata Scanner Capture Scanning System Software Scanning Software Name: Adobe Photoshop 24.7 (Macintosh)
[XMP:XMP-mix]   Mix Image Capture Metadata Orientation: normal*
[XMP:XMP-mix]   Mix Image Assessment Metadata Spatial Metrics Sampling Frequency Unit: in.
[XMP:XMP-mix]   Mix Image Assessment Metadata Spatial Metrics X Sampling Frequency Numerator: 72
[XMP:XMP-mix]   Mix Image Assessment Metadata Spatial Metrics X Sampling Frequency Denominator: 1
[XMP:XMP-mix]   Mix Image Assessment Metadata Spatial Metrics Y Sampling Frequency Numerator: 72
[XMP:XMP-mix]   Mix Image Assessment Metadata Spatial Metrics Y Sampling Frequency Denominator: 1
[XMP:XMP-mix]   Mix Image Assessment Metadata Image Color Encoding Bits Per Sample Bits Per Sample Value: 8
[XMP:XMP-mix]   Mix Image Assessment Metadata Image Color Encoding Bits Per Sample Bits Per Sample Unit: integer
[XMP:XMP-mix]   Mix Image Assessment Metadata Image Color Encoding Samples Per Pixel: 3

I'm unsure if it's fairly easy to get formal support for Mix in ET?  it's fairly open here, but i'm not really aware of how ET deals with XML at the moment.  I only mention this because i considered it fairly low hanging fruit, but perhaps i am wrong!  wouldn't be the first time.

And of course, this is only processing a mix.xml file proper.  presumably if it were XMP though, reading and writing to images might be enabled?

- J




Phil Harvey

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

blue-j