imagej / imagej2

Open scientific N-dimensional image processing :microscope: :sparkler:
https://imagej.net/
BSD 2-Clause "Simplified" License
1.2k stars 336 forks source link

CZI file opened (poorly) without CZI format available #96

Open dietzc opened 10 years ago

dietzc commented 10 years ago

If you want to open a format which is not natively supported by SCIFIO/ImageJ2, the user should receive a warning message. Currently the file is opened in a text-editor as binary.

dscho commented 10 years ago

We could use the ancient isBinary method: look for NULs in the first 1024 bytes.

ctrueden commented 10 years ago

@dietzc I cannot reproduce this behavior.

hinerm commented 10 years ago

@dietzc @ctrueden : note that this issue was specifically about opening a .czi file using ImageJ without a Bio-Formats plugin on the classpath.

The result, instead of throwing an unsupported format exception, opened the file as binary. So it is worth investigating what is reporting it can open this file to determine if it's a mistake or not.

The sample dataset showing this problem is 72h-slide1_2014_07_03__10_38_42_Maximum intensity projection.czi, uploaded as a sample image to Fiji. I suspect other files might produce similar results. The dataset opens correctly with Fiji, because scifio-bf-compat is on the classpath.

Updated the title to reflect this problem specifically.