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 ofC
,Z
, andT
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file generate_tiff_offsets-0.1.8.tar.gz
.
File metadata
- Download URL: generate_tiff_offsets-0.1.8.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c767102c38e1ad99550ead6e8de40ccb7e99f33812b0bbba2697eba0d6b51aa |
|
MD5 | 62e4a134d5d3d9580efc5ee0a3488645 |
|
BLAKE2b-256 | fecc3d92ee239a3819ccfb852670a30be210639f710f303e447e3bd50f42e76f |
Provenance
The following attestation bundles were made for generate_tiff_offsets-0.1.8.tar.gz
:
Publisher:
publish.yml
on hms-dbmi/generate-tiff-offsets
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
generate_tiff_offsets-0.1.8.tar.gz
- Subject digest:
3c767102c38e1ad99550ead6e8de40ccb7e99f33812b0bbba2697eba0d6b51aa
- Sigstore transparency entry: 150144154
- Sigstore integration time:
- Predicate type:
File details
Details for the file generate_tiff_offsets-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: generate_tiff_offsets-0.1.8-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60d2e249ce95722625b84beb2ecd64d3154757ae29f41e09e1fdf55ec76a164f |
|
MD5 | fa63faef50aa0b13e8569987e9ee9dd4 |
|
BLAKE2b-256 | 6234b75f8a94b6cbdff8e457ebb5eee5439ea38d755763d7b892008905f69ff4 |
Provenance
The following attestation bundles were made for generate_tiff_offsets-0.1.8-py3-none-any.whl
:
Publisher:
publish.yml
on hms-dbmi/generate-tiff-offsets
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
generate_tiff_offsets-0.1.8-py3-none-any.whl
- Subject digest:
60d2e249ce95722625b84beb2ecd64d3154757ae29f41e09e1fdf55ec76a164f
- Sigstore transparency entry: 150144155
- Sigstore integration time:
- Predicate type: