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.0.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.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: image_metadata_recorder-1.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d0b53f7c28794e4b20a3ec01f294122e2c929adcded79020ba412c55878218f8
MD5 71ca6b331dbab0f25743e1d8a1f750d2
BLAKE2b-256 610d9b30584a1afc2025e7dd4a636d8c98c1b0b2c8ba87c5ef95bcb576eea01c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for image_metadata_recorder-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a713bf95cf3c0f8e7d2001fb166700871c9dbcd9017205fd74bd214fa38352b
MD5 42972487f8b13610839a373f4feb12d2
BLAKE2b-256 c0b4f25b46527cb4e663a584c48d712001ebb321f39a03e9ba6d78fd2e75f0be

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