Published June 1, 2026 | Version v2026.6.1
Software Open

cgohlke/tifffile: v2026.6.1

Authors/Creators

Description

Read and write TIFF files

Tifffile is a comprehensive Python library to

  1. store NumPy arrays in TIFF (Tagged Image File Format) files, and
  2. read image and metadata from TIFF-like files used in bioimaging.

Image and metadata can be read from TIFF, BigTIFF, OME-TIFF, GeoTIFF, Adobe DNG, ZIF (Zoomable Image File Format), MetaMorph STK, Zeiss LSM, ImageJ hyperstack, Micro-Manager MMStack and NDTiff, SGI, NIHImage, Olympus FluoView and SIS, ScanImage, Molecular Dynamics GEL, Aperio SVS, Leica SCN, Roche BIF, PerkinElmer QPTIFF (QPI, PKI), Hamamatsu NDPI, Argos AVS, Philips DP, and ThermoFisher EER formatted files.

Image data can be read as NumPy arrays or Zarr arrays/groups from strips, tiles, pages (IFDs), SubIFDs, higher order series, and pyramidal levels.

Image data can be written to TIFF, BigTIFF, OME-TIFF, and ImageJ hyperstack compatible files in multi-page, volumetric, pyramidal, memory-mappable, tiled, predicted, or compressed form.

Many compression and predictor schemes are supported via the imagecodecs library, including LZW, PackBits, Deflate, CCITT, PIXTIFF, LZMA, LERC, Zstd, JPEG (8 and 12-bit, lossless), JPEG 2000, JPEG XR, JPEG XL, WebP, PNG, EER, Jetraw, 24-bit floating-point, and horizontal differencing.

Tifffile can also be used to inspect TIFF structures, read image data from multi-dimensional file sequences, write fsspec ReferenceFileSystem for TIFF files and image file sequences, patch TIFF tag values, and parse many proprietary metadata formats.

Changes

  • Replace NullContext with contextlib.nullcontext (breaking).
  • Fix writing monochrome linear_raw (#328).
  • Fix keyboard axis selection in imshow interactive viewer (#327).
  • Fix reading short ASCII string tag values from NDPI.
  • Add option to suppress writing extrasamples tag.
  • Verify origin of codecs.

Files

cgohlke/tifffile-v2026.6.1.zip

Files (427.2 kB)

Name Size Download all
md5:c3db3ba9096cfb2043d7463e4e5b6c72
427.2 kB Preview Download

Additional details

Related works

Software