Open images in napari#

napari natively supports tiff and many other formats supported by skimage.io.imread as input image file format.

Try with your own images or download this ome tiff file.

Additional input file formats may be supported by plugins. Try napari-aicsimageio if you have czi, lif, or nd2 files.

Once you have the proper plugin installed, use File > Open Files(s) and select the image file, or simply drag and drop the image into napari.

For demo purpose, we will use a sample image that comes with napari.

Option 1: Using the GUI to open an image#

  1. In napari, go to File -> Open Sample -> napari built-ins -> Cell

Open sample image

Option 2: Using the napari console to open an image#

  1. Open napari IPython console

IPython console

  1. Type

from skimage import data

viewer.add_image(data.cell(), name='cell')
image of a single cell opened in napari viewer

Note

Once you have a napari viewer open, you can also make a new Image layer from an image (or URL to an image) copied to your Clipboard using File -> New Image from Clipboard menu item (keybinding Command/Ctrl+N).