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.1.0.tar.gz (9.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.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: image_metadata_recorder-1.1.0.tar.gz
  • Upload date:
  • Size: 9.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.1.0.tar.gz
Algorithm Hash digest
SHA256 fa8e243951b48adb3c1d11b1fe300910471ff0961fb0f785a0ef01b0adb2d407
MD5 e259ec061bc08a72070346d8f4e399c8
BLAKE2b-256 019f82dff8a1af4d9bbf1849f6b3c5649e2f82b139ab6bb93075be687b7f81ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for image_metadata_recorder-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad583bff9a3f40288d38e8a5a50e2a98e6bb7f66fe918f7165e2630904cdba4d
MD5 6059a93ea63be1b79821c3e0400b005d
BLAKE2b-256 cd52a030ed7e422112edd42af54518d28d6e4f3837859da9f4bc458c615451c6

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