Skip to main content

A package for examining the structure and contents of the metadata contained within tiff files

Project description

tiff-inspector

Tiff-Inspector is a Python package that allows you to easily inspect the content and metadata of TIFF (Tagged Image File Format) files. The package provides an easy-to-use interface to view and analyze the hierarchical structure, series, levels, and tags of TIFF files.

Features

  • Inspect hierarchical structure of TIFF files.
  • View metadata for series, levels, and individual pages.
  • Extract and display image descriptions.
  • Display metadata and tag values in a human-readable format.
  • Supports XML and plain text descriptions.

Installation

You can install Tiff-Inspector using pip:

pip install tiffinspector

Dependencies

  • tifffile
  • xmltodict
  • IPython

Usage

To use the Tiff-Inspector package, simply import the TiffInspector class and create an instance with the path to the TIFF file.

from tiffinspector import TiffInspector

# Instantiate the TiffInspector with the path to the TIFF file
tiff_inspector = TiffInspector("path/to/tiff/file.tif")

# Display the report
tiff_inspector.display_report(expanded=False, levels=None, max_text_length=None)

You can customize the display of the report by modifying the parameters:

  • expanded: If set to True, it will expand the JSON structures in the report.
  • levels: Set the number of tree levels to display. If set to None, it will display the entire tree.
  • max_text_length: Set the maximum length of text values in the report. If set to None, it will display the entire text.

Documentation

For more detailed information on the package and its functions, please refer to the source code and comments within the package.

License

This package is released under the MIT License.

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

tiff-inspector-0.1.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

tiff_inspector-0.1.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file tiff-inspector-0.1.1.tar.gz.

File metadata

  • Download URL: tiff-inspector-0.1.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for tiff-inspector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d72e706cd4290aec2abf8462b82671eaa7a6dd5f91c5c37774d875a4b4274464
MD5 cd792bab3f81e141fcff364b8b0a7437
BLAKE2b-256 c43b629dec5527282c968bc8b9d715f299eb98206ad5f45bb16c9ad4fc1b16b1

See more details on using hashes here.

File details

Details for the file tiff_inspector-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tiff_inspector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 172f25dca110ce03f210d45d8562821240d0e81186cf10f823bfb84bf401ecdf
MD5 ce872fa5d98f90f33adc47f9ae7e6521
BLAKE2b-256 e7b67fa800e35898097c96a3591de40d6ebcdac7572727bbe051458f7ef458aa

See more details on using hashes here.

Supported by

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