DAM Possible values for dam:ColorSpace | Community
Skip to main content
francisco_ribei
New Participant
December 14, 2015
Solved

DAM Possible values for dam:ColorSpace

  • December 14, 2015
  • 3 replies
  • 1055 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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. 

 

3 replies

francisco_ribei
New Participant
December 14, 2015

Hi @smacdonald2008,

I am seeing it in the metadata node in the Asset.

It is a nt:unstructured node.

Thanks

smacdonald2008
smacdonald2008Accepted solution
New Participant
December 14, 2015

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. 

 

francisco_ribei
New Participant
December 14, 2015

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