This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 9 - Pages: 1 - Last Post: 2 Jun 26, 18:52 Last Post By: davidekholm Threads: [ Previous | Next ]
maclucassen

Posts: 2
Registered: 26-May-2017
Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 21 May 26, 09:55
 
  Click to reply to this thread Reply
Any solution how to fix it?

I've installed jAlbum 39.5.6 on a MBP M1 with MacOS 26.4.1 and got following error, while generating an album:

Mai 21, 2026 9:42:36 AM org.apache.pdfbox.contentstream.PDFStreamEngine operatorException
SCHWERWIEGEND: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed
org.apache.pdfbox.filter.MissingImageReaderException: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed
at org.apache.pdfbox.filter.Filter.findImageReader(Filter.java:171)
at org.apache.pdfbox.filter.JPXFilter.readJPX(JPXFilter.java:118)
at org.apache.pdfbox.filter.JPXFilter.decode(JPXFilter.java:67)
at org.apache.pdfbox.filter.Filter.decode(Filter.java:285)
at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:73)
at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:172)
at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:193)
at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.createInputStream(PDImageXObject.java:930)
at org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.from8bit(SampledImageReader.java:469)
at org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getRGBImage(SampledImageReader.java:212)
at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:499)
at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:465)
at org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:1109)
at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:78)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:931)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:564)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:522)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:158)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:289)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:348)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:262)
at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:245)
at se.datadosen.jalbum.PDFUtil.generateImage(PDFUtil.java:28)
at se.datadosen.jalbum.AlbumObjectImpl.getRepresentingImageFile(AlbumObjectImpl.java:2674)
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:3394)
at se.datadosen.jalbum.AlbumBean.lambda$registerVariables$1(AlbumBean.java:3490)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source)
at java.base/java.util.concurrent.CountedCompleter.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
davidekholm

Posts: 3,969
Registered: 18-Oct-2002
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 21 May 26, 15:51   in response to: maclucassen in response to: maclucassen
 
  Click to reply to this thread Reply
Please attach the pdf that triggers this error.
maclucassen

Posts: 2
Registered: 26-May-2017
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 21 May 26, 16:16   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
my gallery has got approx. 8000 pictures, 30 videos and 7 other documents. The filename has not been mentioned, so it's hard to find the right file. If you send me a private message, I can grant access to that gallery to narrow down the error.
JeffTucker

Posts: 8,338
Registered: 31-Jan-2006
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 21 May 26, 17:20   in response to: maclucassen in response to: maclucassen
 
  Click to reply to this thread Reply
The error message indicates that the problem is with a PDF, not an image or video. How many PDF's do you have in the project?
RobM

Posts: 3,983
Registered: 4-Aug-2006
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 21 May 26, 17:46   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Please attach the pdf that triggers this error.
Five year old post, but may still be relevant
https://stackoverflow.com/questions/57707735/how-to-fix-cannot-read-jpeg2000-image-java-advanced-imaging-jai-image-i-o-to
davidekholm

Posts: 3,969
Registered: 18-Oct-2002
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 21 May 26, 18:52   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
See if the problem is resolved by downloading "jai-imageio-core-1.4.0.jar" to jAlbum's "lib" folder from
https://mvnrepository.com/artifact/com.github.jai-imageio/jai-imageio-core/1.4.0

(click " bundle (613 KB) link)
RobM

Posts: 3,983
Registered: 4-Aug-2006
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 21 May 26, 22:22   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
See if the problem is resolved by downloading "jai-imageio-core-1.4.0.jar" to jAlbum's "lib" folder from
https://mvnrepository.com/artifact/com.github.jai-imageio/jai-imageio-core/1.4.0

(click " bundle (613 KB) link)

That fixes the error but does not seem to extract the image for the thumbnail. This might be due to my attempt at creating the PDF, attached. I see the text of page 1 with the PDF icon superimposed.
davidekholm

Posts: 3,969
Registered: 18-Oct-2002
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 21 May 26, 23:03   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
davidekholm wrote:
See if the problem is resolved by downloading "jai-imageio-core-1.4.0.jar" to jAlbum's "lib" folder from
https://mvnrepository.com/artifact/com.github.jai-imageio/jai-imageio-core/1.4.0

(click " bundle (613 KB) link)

That fixes the error but does not seem to extract the image for the thumbnail. This might be due to my attempt at creating the PDF, attached. I see the text of page 1 with the PDF icon superimposed.

We simply pick the 1:st page.
RobM

Posts: 3,983
Registered: 4-Aug-2006
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 22 May 26, 00:08   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
I'm getting mixed test results. If I use my test PDF's I get the error
May 21, 2026 11:04:49 PM org.apache.pdfbox.contentstream.PDFStreamEngine operatorException
SEVERE: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed
org.apache.pdfbox.filter.MissingImageReaderException: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed
	at org.apache.pdfbox.filter.Filter.findImageReader(Filter.java:171)
the first time the PDF is added. If I reopen the project the error is gone, because there is now a cached image?

I think the OP needs to supply/test with his PDFs.
davidekholm

Posts: 3,969
Registered: 18-Oct-2002
Re: Java Advanced Imaging (JAI) Image I/O Tools are not installed
Posted: 2 Jun 26, 18:52   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
The problem is that the pdf uses embedded JPEG2000 images, which are not natively supported by Java, but one can add support for it by downloading these files to jAlbum's lib folder, then restart jAlbum and holding down SHIFT while selecting View->Update. This may now simply generate "X" icons. If so, close and re-open the project. Now the images should show:

Files:
https://jalbum.net/download/jai-imageio-core-1.4.0.jar
https://jalbum.net/download/jai-imageio-jpeg2000-1.4.0.jar
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums