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

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

Mark Solution

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

해결됨

Color Space of an Image Asset

Avatar

Level 1

Hi All,

 

There is a requirement, to get the Color Space(RGB,CMYK, Grayscale etc.) of an Image Asset of below types in AEM Java Servlet :

Image Types: "jpeg", "jpg", "png", "tiff", "tif", "psd", "eps", "psb"

We have already tried with below APIs:

  1.       org.apache.commons.imaging.ImageInfo -  For some assets it is giving correct value, but for                others it is not returning the expected value. Also this API doesn’t support EPS files.  
  2.       javax.imageio.ImageIO -  This API is not supporting CYMK Color Space files. 

Also, the values returned by these APIs are not matching with the values we get in Adobe Photoshop.

Please help us with some solution on the same. Any help will be really appreciated.

 

 

 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 4

The problem is that color space metadata isn't stored in a consistent place by file type or creating application. There's no way that I'm aware of OTB to pull this information within AEM.  You'd have to add a custom media handler in a custom WF step on Update Asset WF and find a library that will identify color space.  

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
Level 4

The problem is that color space metadata isn't stored in a consistent place by file type or creating application. There's no way that I'm aware of OTB to pull this information within AEM.  You'd have to add a custom media handler in a custom WF step on Update Asset WF and find a library that will identify color space.