Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Large Image

Build Status codecov.io License doi-badge pypi-badge

Python modules to work with large, multiresolution images.

Large Image is developed and maintained by the Data & Analytics group at Kitware, Inc. for processing large geospatial and medical images. This provides the backbone for several of our image analysis platforms including Resonant GeoData, HistomicsUI, and the Digital Slide Archive.

Highlights

  • Tile serving made easy

  • Supports a wide variety of geospatial and medical image formats

  • Convert to tiled Cloud Optimized (Geo)Tiffs (also known as pyramidal tiffs)

  • Python methods for retiling or accessing regions of images efficiently

  • Options for restyling tiles, such as dynamically applying color and band transform

Installation

In addition to installing the large-image package, you’ll need at least one tile source (a large-image-source-xxx package). You can install everything from the main project with one of these commands:

Pip

Install common tile sources on linux, OSX, or Windows:

pip install large-image[common]

Install all tile sources on linux:

pip install large-image[all] --find-links https://girder.github.io/large_image_wheels

Install all tile sources and all Girder plugins on linux:

pip install large-image[all] girder-large-image-annotation[tasks] --find-links https://girder.github.io/large_image_wheels

Conda

Conda makes dependency management a bit easier if not on Linux. Some of the source modules are available on conda-forge. You can install the following:

conda install -c conda-forge large-image-source-gdal
conda install -c conda-forge large-image-source-tiff
conda install -c conda-forge large-image-converter

Docker Image

Included in this repository’s packages is a pre-built Docker image that has all of the dependencies to read any supported image format.

This is particularly useful if you do not want to install some of the heavier dependencies like GDAL on your system or want a dedicated and isolated environment for working with large images.

To use, pull the image and run it by mounting a local volume where the imagery is stored:

docker pull ghcr.io/girder/large_image:latest
docker run -v /path/to/images:/opt/images ghcr.io/girder/large_image:latest

Modules

Large Image consists of several Python modules designed to work together. These include:

  • large-image: The core module.

    You can specify extras_require of the name of any tile source included with this repository. For instance, you can do pip install large-image[tiff]. There are additional extras_require options:

    • sources: all of the tile sources in the repository, a specific source name (e.g., tiff)

    • memcached: use memcached for tile caching

    • converter: include the converter module

    • colormaps: use matplotlib for named color palettes used in styles

    • tiledoutput: support for emitting large regions as tiled tiffs

    • performance: include optional modules that can improve performance

    • common: all of the tile sources and above packages that will install directly from pypi without other external libraries on linux, OSX, and Windows.

    • all: for all of the above

  • large-image-converter: A utility for using pyvips and other libraries to convert images into pyramidal tiff files that can be read efficiently by large_image. You can specify extras_require of jp2k to include modules to allow output to JPEG2000 compression, sources to include all sources, stats to include modules to allow computing compression noise statistics, geospatial to include support for converting geospatial sources, or all for all of the optional extras_require.

  • Tile sources:

    • large-image-source-bioformats: A tile source for reading any file handled by the Java Bioformats library.

    • large-image-source-deepzoom: A tile source for reading Deepzoom tiles.

    • large-image-source-dicom: A tile source for reading DICOM WSI images.

    • large-image-source-gdal: A tile source for reading geotiff files via GDAL. This handles source data with more complex transforms than the mapnik tile source.

    • large-image-source-mapnik: A tile source for reading geotiff and netcdf files via Mapnik and GDAL. This handles more vector issues than the gdal tile source.

    • large-image-source-multi: A tile source for compositing other tile sources into a single multi-frame source.

    • large-image-source-nd2: A tile source for reading nd2 (NIS Element) images.

    • large-image-source-ometiff: A tile source using the tiff library that can handle some multi-frame OMETiff files.

    • large-image-source-openjpeg: A tile source using the Glymur library to read jp2 (JPEG 2000) files.

    • large-image-source-openslide: A tile source using the OpenSlide library. This works with svs, ndpi, Mirax, tiff, vms, and other file formats.

    • large-image-source-pil: A tile source for small images via the Python Imaging Library (Pillow).

    • large-image-source-tiff: A tile source for reading pyramidal tiff files in common compression formats.

    • large-image-source-tifffile: A tile source using the tifffile library that can handle a wide variety of tiff-like files.

    • large-image-source-vips: A tile source for reading any files handled by libvips. This also can be used for writing tiled images from numpy arrays.

    • large-image-source-zarr: A tile source using the zarr library that can handle OME-Zarr (OME-NGFF) files as well as some other zarr files.

    • large-image-source-test: A tile source that generates test tiles, including a simple fractal pattern. Useful for testing extreme zoom levels.

    • large-image-source-dummy: A tile source that does nothing.

    Most tile sources can be used with girder-large-image. You can specific an extras_require of girder to include girder-large-image with the source.

  • As a Girder plugin:

    • girder-large-image: Large Image as a Girder 3.x plugin. You can specify extras_require of tasks to install a Girder Worker task that can convert otherwise unreadable images to pyramidal tiff files.

    • girder-large-image-annotation: Annotations for large images as a Girder 3.x plugin.

    • large-image-tasks: A utility for running the converter via Girder Worker. You can specify an extras_require of girder to include modules needed to work with the Girder remote worker or worker to include modules needed on the remote side of the Girder remote worker. If neither is specified, some conversion tasks can be run using Girder local jobs.

Developer Installation

To install all packages from source, clone the repository:

git clone https://github.com/girder/large_image.git
cd large_image

Install all packages and dependencies:

pip install -e . -r requirements-dev.txt

If you aren’t developing with Girder 3, you can skip installing those components. Use requirements-dev-core.txt instead of requirements-dev.txt:

pip install -e . -r requirements-dev-core.txt

Tile source prerequisites

Many tile sources have complex prerequisites. These can be installed directly using your system’s package manager or from some prebuilt Python wheels for Linux. The prebuilt wheels are not official packages, but they can be used by instructing pip to use them by preference:

pip install -e . -r requirements-dev.txt --find-links https://girder.github.io/large_image_wheels

Release files for large-image 1.27.5.dev100

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for large-image 1.27.5.dev100
File Size Uploaded
large-image-1.27.5.dev100.tar.gz 156.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for large-image 1.27.5.dev100
File Interpreter ABI Platform
large_image-1.27.5.dev100-py3-none-any.whl Python 3 none any Details

Total release size: 250.4 kB

Release files / large-image-1.27.5.dev100.tar.gz

Download URL large-image-1.27.5.dev100.tar.gz
Size 156.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8b8400f51e887c1d796a2cb64c00a805cafb280563a1681ad2e21840729147c8
BLAKE2b-256 checksum
How to use checksums
4b9a604906ef8032164bbd18f6e995aa9ac615575a22dc4da1c29ca58084c7be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / large_image-1.27.5.dev100-py3-none-any.whl

Download URL large_image-1.27.5.dev100-py3-none-any.whl
Size 94.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dbf5de29f338a0169f72b5c9bf1fe18eaa2b657f51df148ab2e3749d470d2e6
BLAKE2b-256 checksum
How to use checksums
cb03bf71237e0b640e91dd635d091d2892b0e6ffaf16cd7ea47bf95ce1d15bae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release history Release notifications | RSS feed

1.35.4

2 release files

1.35.3

2 release files

1.35.1

2 release files

1.34.3

2 release files

1.34.1

2 release files

1.34.0

2 release files

1.33.4

2 release files

1.33.0

2 release files

1.32.8

2 release files

1.32.7

2 release files

1.32.6

2 release files

1.32.5

2 release files

1.32.4

2 release files

1.32.2

2 release files

1.32.1

2 release files

1.31.0

2 release files

1.30.5

2 release files

1.30.2

2 release files

1.30.1

2 release files

1.30.0

2 release files

1.29.9

2 release files

1.29.8

2 release files

1.29.6

2 release files

1.29.5

2 release files

1.29.4

2 release files

1.29.3

2 release files

1.29.2

2 release files

1.29.1

2 release files

1.28.2

2 release files

1.28.1

2 release files

This release

1.27.1

2 release files

1.26.3

2 release files

1.26.2

2 release files

1.26.1

2 release files

1.25.0

2 release files

1.24.0

2 release files

1.23.7

2 release files

1.23.6

2 release files

1.23.5

2 release files

1.23.4

2 release files

1.23.3

2 release files

1.23.2

2 release files

1.23.0

2 release files

1.22.4

2 release files

1.22.3

2 release files

1.22.0

2 release files

1.21.0

2 release files

1.20.5

2 release files

1.20.4

2 release files

1.20.2

2 release files

1.20.1

2 release files

1.20.0

2 release files

1.19.3

2 release files

1.19.2

2 release files

1.19.1

2 release files

1.17.2

2 release files

1.17.1

2 release files

1.17.0

2 release files

1.16.2

2 release files

1.16.1

2 release files

1.15.1

2 release files

1.15.0

2 release files

1.14.4

2 release files

1.14.2

2 release files

1.14.1

2 release files

1.14.0

2 release files

1.13.0

2 release files

1.12.0

2 release files

1.11.1

2 release files

1.11.0

2 release files

1.10.0

2 release files

1.9.0

2 release files

1.8.9

2 release files

1.8.8

2 release files

1.8.7

2 release files

1.8.6

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page