Ways to convert LIF to TIFF
Bio-Formats rates its LIF reader 5 out of 5 for pixels and for metadata.
Export LIF to TIFF in LAS X (Windows)
- Open the project in LAS X and right-click the image you want, then open the Export Image window.
- Choose the folder for the exported images and select TIFF, Lossless Compression and Export LUT.
- Export the channels as RAW Image rather than Scaled Viewer Image, and leave “Save as Multipage” unchecked if you want each channel as a separate image.
These steps come from Duke University’s light microscopy core guide for LAS X on a Stellaris 8; menu names can differ between versions. LAS X Office, Leica’s free review version of LAS X, runs on 64-bit Windows 10 and 11 after a registration form (see our LAS X Office page); we have not confirmed that its export dialog matches.
Convert LIF to OME-TIFF in Fiji or with bfconvert (free)
- In Fiji, open the
.lif file. The Bio-Formats importer shows its “Bio-Formats Series Options” list of the images in the project; tick the ones you need. Each opens in its own window.
- For each window, choose Plugins › Bio-Formats › Bio-Formats Exporter and save as
.ome.tif. Over 4 GB, use a BigTIFF extension such as .ome.btf.
A tile scan can fill the list with preview images until Fiji falls back to typing ranges of image numbers; the University of Helsinki imaging unit suggests deleting the preview images in LAS X first (in a copy of the file, if you still need them). From a terminal, the Bio-Formats tools (download bftools.zip) list and convert the images directly:
showinf -nopix input.lif
bfconvert -series 2 input.lif image3.ome.tiff
bfconvert input.lif image_%s.ome.tiff
Series are numbered from 0, so -series 2 is the third image. %s in the output name writes one file per image, named by its number; with neither, every image of the project goes into one OME-TIFF. Output is uncompressed unless you add -compression, for example -compression LZW.
Convert LIF in Python
bioio reads LIF with its bioio-lif plugin (built on liffile) and writes OME-TIFF with bioio-ome-tiff. In bioio, each image of the project is a scene:
from bioio import BioImage
img = BioImage("input.lif")
print(img.scenes) # the images in the project
img.save("project.ome.tiff") # every image; select_scenes=[...] for some
readlif is a smaller reader: LifFile("input.lif").get_image(0).get_frame(z=0, t=0, c=0) returns one plane. It does not write files, and its author lists metadata extraction as still to come, so pair it with tifffile and record the pixel size yourself.
Convert LIF to OME-TIFF in SlideScope (no code)
- Open the
.lif file in SlideScope on Windows or Mac.
- Choose the image from the Image list in the viewer; the Metadata panel says how many images the project holds.
- Choose File › Export Current Image as TIFF… (Ctrl+Shift+C; Cmd+Shift+C on a Mac). SlideScope writes a lossless OME-TIFF (
.ome.tif) of that image with the channel names, colours and pixel size from LAS X, and never changes the original file. Images after the first get _image-N in the suggested name, so exports of one project do not overwrite each other.
- A tile scan is written with each tile as its own image inside the OME-TIFF, with its recorded stage position, rather than stitched into one mosaic.
- Repeat for each image you need. The folder export (File › Open Folder, then “Export the selected files…”) converts the first image of each project, so use it for folders of single-image LIF files.
Exporting your own files needs a subscription; the built-in samples export free. The conversion runs on your own computer; nothing is uploaded. For what SlideScope cannot show from a LIF project, see the file compatibility page.
LIF conversion questions
How do I convert LIF to TIFF in ImageJ or Fiji?
Open the .lif file in Fiji; the Bio-Formats importer lists the images in the project so you can choose the ones you need. Each opens in its own window. Save each with Plugins › Bio-Formats › Bio-Formats Exporter as .ome.tif to keep the pixel size and channel names.
How do I convert every image in a LIF file at once?
With bfconvert, put %s in the output name (for example image_%s.ome.tiff) to write one file per image, numbered from 0, or leave it out to put every image in one OME-TIFF. In Python, bioio’s BioImage("input.lif").save("project.ome.tiff") writes every image of the project unless you pass select_scenes.
Why does my exported TIFF look black or very dark?
Confocal images are often 12- or 16-bit, and a viewer that shows the full 0-65,535 range makes them look dark. The data is fine: adjust brightness and contrast rather than converting to 8-bit, which throws information away.
Should I export TIFF or OME-TIFF?
OME-TIFF. It is still a TIFF that most programs open, but it keeps the channel names, the pixel size and the Z and time structure in its metadata. A plain TIFF usually keeps only the pixels, so measurements in other software come out in pixels instead of µm.
Is SlideScope free?
SlideScope is a paid app with a free sample library (every tool); your own images need a subscription from $35/month.
Explore the built-in sample library free, with every tool. Opening your own images needs a subscription: $35/month, billed when you subscribe (PayPal or card), and you can cancel anytime from your account. Annual billing is available at $349.99/year, which works out to about two months free.
Sources
Convert without uploading
Try it free on the built-in samples, then open your own LIF projects and export lossless OME-TIFF with a subscription. Already decided? Subscribe now.
Download SlideScope