ome / bioformats

Bio-Formats is a Java library for reading and writing data in life sciences image file formats. It is developed by the Open Microscopy Environment. Bio-Formats is released under the GNU General Public License (GPL); commercial licenses are available from Glencoe Software.
https://www.openmicroscopy.org/bio-formats
GNU General Public License v2.0
381 stars 241 forks source link

ImageConverter not support openslide api #3722

Closed mywsat closed 1 year ago

mywsat commented 3 years ago

I use the bioformat API to convert JPG to tiff. It is found that the converted TIFF file (pyramid) cannot be opened with openslide. Only tile TIFF is supported

ImageConverter converter = new ImageConverter();
converter.in = src;
converter.out = out;
converter.bigtiff = true;
//converter.nobigtiff=false;
converter.overwrite = true;
converter.saveTileWidth = 1024;
converter.saveTileHeight = 1024;
converter.compression = "zlib";
//converter.merge=true;
converter.pyramidScale=2;
converter.pyramidResolutions=3;
// converter.flat=true;
converter.testConvert(new ImageWriter(), new String[]{});

only one level image

sbesson commented 3 years ago

Hi @mywsat:

If using openslide is part of your requirement, you will need to convert the data into a supported multi-resolution file format. In this case libvips might be an option to go from jpg to Generic tiled TIFF - see https://forum.image.sc/t/create-more-than-series-using-qupath/52849/9 for a typical workflow /cc @jcupitt

melissalinkert commented 1 year ago

Closing in the absence of updates, since there are no planned changes here. @mywsat, if you're still having trouble and the suggestions in https://github.com/ome/bioformats/issues/3722#issuecomment-902668107 didn't help, feel free to re-open with more information about your workflow requirements.