Legacy Knowledge Base
Published Jul. 2, 2025

Error cannot read JPEG2000 image

Written By

Matheus Monteiro

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • After uploading a (or a group of) .pdf file containing jp2 images or others such as JBIG2 or TIFF, the following error is thrown in the logs:
ERROR [main][PDFStreamEngine:211] Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed

Environment

  • DXP 7.0
  • DXP 7.1

Resolution

  • Enable ImageMagick and GhostScript:
    • Go to Control Panel -> Server Administration -> External Services -> Enabling ImageMagick and GhostScript and click in "Enable" option
    • Click en "Save"

Alternatively, you can use the following property in the portal-ext.properties file: 

 imagemagick.enabled=true

Additional Information

  • It happens due to a limitation in PDFBOX. Please see this link for more information.

Did this article resolve your issue ?

Legacy Knowledge Base