Skip to main content

A package to generate TIFF offsets

Project description

generate-tiff-offsets

A python cli (and web-application) for generating an Image File Directory (IFD) index for TIFFs. See the benchmark from our paper or watch our video explainer to learn more about how our strategy improves random chunk access speeds for OME-TIFF in Viv.

TIFF IFD Index specification

The content of an TIFF IFD Index should match the given description here.

Version 0

Prototype spec for the structure required for TIFF IFD Index (JSON):

[IFD_offset_0, IFD_offset_1, IFD_offset_2, IFD_offset_3, ..., IFD_offset_N]

where IFD_offset_n corresponds to the nth byte-offset for the corresponding Image File Directory in the linear TIFF series.

Note For OME-TIFF, the ordering of IFDs is determined by the DimensionOrder attribute in the OME-XML metadata. Each combination of C, Z, and T corresponds to one IFD, meaning the total number of IFDs is the product of these dimensions (T x C x Z) and independent of the number of pyramidal resolutions in the OME-TIFF.

🐍 Python CLI

  pip install generate-tiff-offsets
  generate_tiff_offsets --input_file <my_file>.ome.tiff

This command writes the Version 0 Index to the local file system, adjacent to the input TIFF with the file name <my_file>.offsets.json.

Warning Our OME-TIFF web-viewer, Avivator expects this naming convension and folder structure in order for the Indexed OME-TIFF to be recognized.

🌎 Web application

The website requires no installation and can be used to generate the Version 0 index directly in the browser. See our video tutorial for usage instructions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

generate_tiff_offsets-0.1.9.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

generate_tiff_offsets-0.1.9-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file generate_tiff_offsets-0.1.9.tar.gz.

File metadata

  • Download URL: generate_tiff_offsets-0.1.9.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for generate_tiff_offsets-0.1.9.tar.gz
Algorithm Hash digest
SHA256 330b6d998dd7f2cfb0b25b9dd00cc49a48e7f0d1d38bba80e4de29d6f2eb534a
MD5 84729c750a9b6d62523ee9681a74c521
BLAKE2b-256 841fa0877178ae7796c11b7c64c5442776612f280725fe8c333c68c63b4b8180

See more details on using hashes here.

Provenance

The following attestation bundles were made for generate_tiff_offsets-0.1.9.tar.gz:

Publisher: publish.yml on hms-dbmi/generate-tiff-offsets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file generate_tiff_offsets-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for generate_tiff_offsets-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a157d87ce54ea3967c1fa9d98ff646899b36b2f6243ec705fc9f011c8bc9e4a0
MD5 2cdf5d0cbe3960336f879b47d33fb6d3
BLAKE2b-256 ebf455cbd4dd3965c7006d8cadc8201d73dc88b7a55d39ba98cb391d9343146e

See more details on using hashes here.

Provenance

The following attestation bundles were made for generate_tiff_offsets-0.1.9-py3-none-any.whl:

Publisher: publish.yml on hms-dbmi/generate-tiff-offsets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page