내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

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 채택된 해결책 개

Avatar

정확한 답변 작성자:
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. 

 

원본 게시물의 솔루션 보기

3 답변 개

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

정확한 답변 작성자:
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