Hi,
I need to display in the metadata values for the color space in the asset, like: RGB, CMYK, etc.
As I could see this metadata is stored in the dam:ColorSpace property. But it is store as code like 1, -1.
Is there any documentation with the mapping of these values to the corresponding Color Space?
I mean, if 1 it is RGB, if 2 it is CMYK.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
What node type are you seeing the dam:ColorSpace property? I am viewing the node types for DAM in the Node Type Administration - I am not seeing this property nor seeing any docs on it.
Views
Replies
Total Likes
Hi,
Decompiling some jars I found this:
public String getColorTypeDescription()
{
switch (this.colorType)
{
case 0:
return "Black and White";
case 1:
return "Grayscale";
case 2:
return "RGB";
case 3:
return "CMYK";
case 4:
return "YCbCr";
case 5:
return "YCCK";
case 6:
return "YCC";
case -1:
return "Other";
case -2:
return "Unknown";
}
return "Unknown";
}
This is from the commons-imaging jar.
Would this be the color space mapping for the dam:ColorSpace metadata property?
Thanks
Views
Replies
Total Likes
What node type are you seeing the dam:ColorSpace property? I am viewing the node types for DAM in the Node Type Administration - I am not seeing this property nor seeing any docs on it.
Views
Replies
Total Likes
Hi @smacdonald2008,
I am seeing it in the metadata node in the Asset.
It is a nt:unstructured node.
Thanks
Views
Replies
Total Likes
Views
Likes
Replies