Hi All
I'm trying to add photoshop:ColorMode as a new Metadata Property. It's on
page 32 of the XMP spec part 2:
http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/cc-201306/XMPSpecificationPart2.pdf
photoshop:ColorMode
* Closed Choice of Integer
* The colour mode. One of:
0 = Bitmap
1 = Gray scale
2 = Indexed colour
3 = RGB colour
4 = CMYK colour
7 = Multi-channel
8 = Duotone
9 = LAB colour
My problem is that Property.internalClosedChoise stores the choices as a
set, not an ordered list, so I have no easy way to get from a 3 to "RGB
Colour" or vice-versa
Anyone have any thoughts on the right way to handle these indexed property
types? I think we want to be setting String values like "Duotone", to be
helpful for external applications, but we want to not loose that that
corresponds to a value of 8, especially when reading an 8 from the file in
the parser
Any thoughts?
Nick