Leftover dialog when opening custom format as virtual stack in 1.52u

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Leftover dialog when opening custom format as virtual stack in 1.52u

Alan Brooks
This post was updated on .
I maintain a plugin for opening a custom raw file format as a virtual stack.
In 1.52t, it works fine.

In 1.52u, it opens the image but also throws up a modal/blocking dialog with
title "Opener" and content "File is not in a supported format, a reader
plugin is not available, or it was not found." (see attached screenshot)

<http://imagej.1557.x6.nabble.com/file/t379688/NotSupported.png

I suspect this has something to do with an underlying change in the
HandleExtraFileTypes infrastructure in 1.52u. I enable my custom raw format
plugin as such in HandleExtraFileTyes.java (checking for some magic byte
characters because unfortunately the files I am dealing with end with the
ambiguous file extension `.raw`):

// A. Brooks: Added Vvv .raw file handler
byte[] V_PREAMBLE = {0x44, 0x44, 0x43, 0x20};
if ((name.endsWith(".raw") || name.endsWith(".RAW")) &&
        buf[0]==V_PREAMBLE[0] &&
        buf[1]==V_PREAMBLE[1] &&
        buf[2]==V_PREAMBLE[2] &&
        buf[3]==V_PREAMBLE[3]) {
        // return tryPlugIn("brooks.io.VvvFile", path);
        return tryPlugIn("brooks.io.VvvVirtualStack", path);
}
Reply | Threaded
Open this post in threaded view
|

Re: Leftover dialog when opening custom format as virtual stack in 1.52u

Wayne Rasband-2
> On Mar 18, 2020, at 7:49 AM, Alan Brooks <[hidden email]> wrote:
>
> I maintain a plugin for opening a custom raw file format as a virtual stack.
> In 1.52t, it works fine.
>
> In 1.52u, it opens the image but also throws up a modal/blocking dialog with
> title "Opener" and content "File is not in a supported format, a reader
> plugin is not available, or it was not found." (see attached screenshot)
>
> <http://imagej.1557.x6.nabble.com/file/t379688/NotSupported.png>
>
> I suspect this has something to do with an underlying change in the
> HandleExtraFileTypes infrastructure in 1.52u. I enable my custom raw format
> plugin as such in HandleExtraFileTyes.java (checking for some magic byte
> characters because unfortunately the files I am dealing with end with the
> ambiguous file extension `.raw`):

This regression is fixed in the ImageJ 1.52v2 daily build. I introduced this bug when I modified ImageJ’s built in TIFF reader to pass files it is unable to open to Bio-Formats via HandleExtraFileTypes.

-wayne
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Leftover dialog when opening custom format as virtual stack in 1.52u

Alan Brooks
I have confirmed that the 1.52v2 daily build fixes this problem. Thanks very
much, Wayne.

Alan



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html