Skip to main content

A tool to extract, analyze, and report on metadata from TIFF, QPTIFF, and CZI files.

Project description

Image Metadata Recorder

License: MIT Python Version Documentation

A specialized tool for biomedical researchers to extract, analyze, and document metadata from various microscopy image formats. This package is designed to support research workflows by providing detailed insights into image acquisition parameters and experimental conditions.

Features

  • Multi-format Support

    • TIFF and QPTIFF file processing
    • CZI (Carl Zeiss Image) file support
    • Extensible architecture for additional formats
  • Comprehensive Metadata Extraction

    • Image dimensions and properties
    • Channel information and configurations
    • Acquisition parameters
    • Instrument settings
    • Custom metadata fields
  • Analysis Tools

    • Metadata structure analysis
    • Key path extraction
    • Template generation for metadata validation
    • Pattern recognition in metadata structures
  • Reporting Capabilities

    • Markdown report generation
    • PDF report creation (requires pandoc)
    • Structured data output in JSON format
    • Customizable report templates

Installation

Prerequisites

  • Python 3.8 or higher
  • pip (Python package installer)
  • pandoc (optional, for PDF report generation)

Basic Installation

pip install image-metadata-recorder

Development Installation

git clone https://github.com/saptarshichakrabarti/image-metadata-recorder.git
cd image-metadata-recorder
pip install -e ".[dev]"

Usage

Command Line Interface

The tool can be used directly from the command line:

# Process all supported files in the current directory
record_image_metadata

# Skip PDF generation
record_image_metadata --skip-pdf

Output Files

For each processed image, the tool generates:

  • *_metadata.json: Complete metadata in JSON format
  • *_key_paths.txt: List of all metadata paths
  • *_structure_template.txt: Template of metadata structure
  • *_report.md: Human-readable report
  • *_report.pdf: PDF version of the report (if pandoc is available)

Example Workflow

  1. Place your image files in a directory
  2. Run the tool:
    record_image_metadata
    
  3. Review the generated reports and metadata files
  4. Use the structure templates for metadata validation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

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

image_metadata_recorder-1.2.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

image_metadata_recorder-1.2.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file image_metadata_recorder-1.2.1.tar.gz.

File metadata

  • Download URL: image_metadata_recorder-1.2.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for image_metadata_recorder-1.2.1.tar.gz
Algorithm Hash digest
SHA256 9383766d56663f01b962c3afee142f1553e90473ee3d831649405c8ec8aae995
MD5 a8a8ee24ead42ed533ce1f299bd32bae
BLAKE2b-256 3adaf5c89f2fe24839fa3257e870a7621f6523d19a4971da25aeea901dc25f4d

See more details on using hashes here.

File details

Details for the file image_metadata_recorder-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for image_metadata_recorder-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba563276c073acdc8b281bde49e0db5af03fb95ccd8b15f48fbca4fd1849585
MD5 116e0c24a6b8c3282ecab9abb6c7e81d
BLAKE2b-256 2356fd9e1e5ff0ccd147abe379252062d1a7034de996dc41b681c20ea6186727

See more details on using hashes here.

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