Posted by
Zummy on
Nov 23, 2005; 4:14am
URL: http://imagej.273.s1.nabble.com/16-bit-grayscale-from-URL-tp3704396p3704400.html
From what I've seen of the Image I/O plugins, they work
on Files. I am trying to read a 16-bit TIFF through
a URL that doesn't end in .tif. I can download an
equivalent Image from the web site, and it displays fine if
I pass it as a argument to ImageJ.
I believe I am setting the Content-Type to image/tif
I looked through the code, and it looks like it is looking for
.tif or .TIF at the end of the URL. So if I change
my URL from
http://hostname/dv/no_handler/Archive_Image.html?image_id=130267&type=tifto
http://hostname/dv/no_handler/Archive_Image.html?image_id=130267&type=.tifthings start working.
I guess my request would be that ImageJ look at the
Content-Type instead of relying on an extension in the URL.
There are several Content-Types for TIFF.
The change would be in Opener.java, in the openURL
method.
As it is, my ImageJ applet hanging, and I have to kill it and my
browser.
I will pursue adding the . to my code
John
At 09:08 AM 11/18/2005, Wayne Rasband wrote:
>>Hmm. I am having trouble with TIFF. I don't know
>>if it's ImageJ or ImageMagick, or just the size of the
>>images. Thanks for the note though. I will try
>>our download link to verify that the TIFFs are generated
>>from ImageMagick.
>>
>>I think I read somewhere that PNG can support 16-bit
>>greyscale. Any hopes of seeing support in ImageJ?
>
>Jarek Sacha's Image I/O plugins read and write 16-bit PNGs.
>
>
http://ij-plugins.sourceforge.net/plugins/imageio/>
>-wayne