Extracting layers from TIFF image | Community
Skip to main content
Abhey
Level 3
July 3, 2023
Solved

Extracting layers from TIFF image

  • July 3, 2023
  • 1 reply
  • 2792 views

Hi,

 

Similar to PSD, the TIFF image can also have layers. We want to be able to extract the layers of TIFF files on AEM Assets and access those using Scene7 URLs.

 

We are able to achieve this for the PSD files, but can't find next steps for TIFF files. Has anyone solved this problem in the past? Any pointers would be helpful.

 

 

Thank You!

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 krati_garg

@abhey I am assuming that you are not using Cloud version of AEM, where in Binary Processing is not recommended at AEM end. This should be deployed via Microservices.

 

On Non-Cloud version, processing binaries is still possible.

Coming back to your query, I see various plugins available to process TIFF files. One of them is imageio library which is already being used in TwelveMonkey link mentioned above.
Some helpful links:
https://blog.aspose.cloud/imaging/get-tiff-frame-in-java/

https://stackoverflow.com/questions/17770071/splitting-a-multipage-tiff-image-into-individual-images-java

https://stackoverflow.com/questions/26139065/how-to-read-a-tiff-file-by-tiles-with-java

 

1 reply

krati_garg
Adobe Employee
Adobe Employee
July 5, 2023

@abhey 

Can you please explain how you are able to access layers for your PSD files. As far as I know, there is no OOTB way to achieve it. Is there any custom solution in play?

Abhey
AbheyAuthor
Level 3
July 5, 2023

Hi @krati_garg ,

 

Indeed this is not OOTB. You can use TwelveMonkey library-

 

https://github.com/haraldk/TwelveMonkeys/tree/master/imageio/imageio-psd

 

Thanks!

krati_garg
Adobe Employee
krati_gargAdobe EmployeeAccepted solution
Adobe Employee
July 6, 2023

@abhey I am assuming that you are not using Cloud version of AEM, where in Binary Processing is not recommended at AEM end. This should be deployed via Microservices.

 

On Non-Cloud version, processing binaries is still possible.

Coming back to your query, I see various plugins available to process TIFF files. One of them is imageio library which is already being used in TwelveMonkey link mentioned above.
Some helpful links:
https://blog.aspose.cloud/imaging/get-tiff-frame-in-java/

https://stackoverflow.com/questions/17770071/splitting-a-multipage-tiff-image-into-individual-images-java

https://stackoverflow.com/questions/26139065/how-to-read-a-tiff-file-by-tiles-with-java