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.