Expand my Community achievements bar.

SOLVED

DAM Possible values for dam:ColorSpace

Avatar

Level 6

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

 

View solution in original post

3 Replies

Avatar

Level 6

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

Avatar

Correct answer by
Level 10

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. 

 

Avatar

Level 6

Hi @smacdonald2008,

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

It is a nt:unstructured node.

Thanks