Open dietzc opened 10 years ago
We could use the ancient isBinary
method: look for NUL
s in the first 1024 bytes.
@dietzc I cannot reproduce this behavior.
@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.
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.