Bug 9

Summary: ImageJ - "Error while importing this image: null"
Product: Orthanc Reporter: Sébastien Jodogne <s.jodogne>
Component: ImageJ extensionAssignee: Sébastien Jodogne <s.jodogne>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: unspecified   
Hardware: All   
OS: All   

Description Sébastien Jodogne 2020-06-29 15:11:16 CEST
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2016-01-22.08:08:13]

Reported by John Roberts on 2016-01-22:

*I can browse Orthanc with the File->Import->Orthanc option.  I see the thumbnails.
Clicking the "Open" button on a series generates an error message, "Error while importing this image: null".  
I'm using a test set of images I had on hand.  It's possible my images are non-compliant in some fashion.  However, the Orthanc DICOM Web viewer plugin has no problems displaying them.  Nor does Orthanc seem to have any trouble receiving and cataloging them.  If I get a chance, I'll import some other series into Orthanc and try the ImageJ import process again.*

The problem is inside "com.orthancserver.OrthancConnection.ReadImage()". The JRE is not be able to read PNG 16bit images. Maybe this problem only appears with OpenJDK and not Oracle's JRE.
Comment 1 Sébastien Jodogne 2020-06-29 15:18:52 CEST
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2016-04-15.09:13:19]

Fixed by the following changelist:
https://hg.orthanc-server.com/orthanc-imagej/changeset/1411a4ecd11384dfd424deb2d8cf23a17ccf62fb