Remove label and macro from a WSI

I have some WSI from Leica (svs), Roche (bif) and ome.tiff with label image information like the following:

I would like to remove this information from the slide. Is there any way to do this?

Not sure of any other answers than what is listed here.

Just out of curiosity, if you used QuPath to write out the image as an OME.TIFF file using the whole slide image builder, wouldn’t that remove the other two images? @petebankhead

This would be painfully slow compared to removing the label image but… should work I think.

Hi @Joan_Gibert_Fernande, if you wish to remove it you could convert only the the required series into a new file. You can do this using the Bio-Formats command line tools from:

Then you can run the below:
bfconvert -series 0 path/to/originalFile.ome-tiff path/to/newFile.ome-tiff

See for the full docs

1 Like

If you want to use libvips, get the precompiled binaries from the github release page. It uses openslide to read whole slide image files, so make sure to get the version with openslide binaries (

Using command line try:

vips copy input.svs output.ome.tif[pyramid,subifd]

I found libvips to be very fast at reading whole slide images and writing ome.tiff.

Read here for more details on libvips support for ome.tif:’s-new-in-8.10.html