OpenSlide Only Recognizing Topmost Layer

Kim, Timothy H. timothy.h.kim at nist.gov
Wed Jun 11 12:39:03 EDT 2014


> Carl is right that the SubfileType is the problem; it should be 0x1 (reduced-
> resolution image) rather than 0x2 (multi-page document).  That was a bug in
> ImageMagick that was fixed a while ago (r6061).

I wrongly made the assumption that imagemagick's and graphicmagick's convert operation was one in the same. After I specified that I wanted im4java's convertcmd operation to use imagemagick, the resulting image was successfully pyramided and compatible with OpenSlide.

> Tiled TIFFs should be compatible even if they are single-level.
> Stripped TIFFs are not.
> 
> >                       convert.define("tiff:tile-geometry=256x256");
> 
> So you've asked for a tiled TIFF...
> 
> >                       convert.define("tiff:rows-per-strip=16");
> 
> ...but RowsPerStrip doesn't make sense for a tiled image.  You should be able
> to omit this line.

I decided to add that line after I found that "tiff:rows-per-strip: 16" was described in the working image but not in the image created from im4java's convertcmd. That line of description still exists in all of the images created from the fixed convert operation, which seems a bit odd if it doesn't make sense for tiled images. 

Thanks for the help again. I will send an email to the graphicsmagick developers to let them know about the bug regarding the creation of mult-page documents rather than reduced-resolution images.

Regards,
Timothy Kim



More information about the openslide-users mailing list