Metadata-Version: 2.4
Name: openflexure_metadata
Version: 0.1.0
Summary: Utilities for handling EXIF metadata for JPEG images from OpenFlexure Microscopes
Author-email: Joe Knapper <joe.knapper@glasgow.ac.uk>, Richard Bowman <richard.bowman@glasgow.ac.uk>, Julian Stirling <julian@julianstirling.co.uk>
License-Expression: LGPL-3.0-or-later
Project-URL: Homepage, https://gitlab.com/openflexure/openflexure-metadata
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Pillow
Requires-Dist: numpy
Requires-Dist: piexif
Provides-Extra: dev
Requires-Dist: ruff~=0.15.1; extra == "dev"
Requires-Dist: mypy[reports]; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: pytest-mock==3.14; extra == "dev"
Requires-Dist: codespell~=2.4; extra == "dev"
Dynamic: license-file

# openflexure-metadata

Utilities for reading and writing EXIF metadata in JPEG images, with support for OpenFlexure-specific fields.

## Features

- Extract image metadata (capture time, stage position, calibration data)
- Read OpenFlexure metadata from EXIF `UserComment`
- Handle camera–stage mapping (CSM)
- Build EXIF metadata for stitched images

## Installation

```bash
pip install openflexure-metadata
```

## Usage

```python
import openflexure_metadata as of_metadata

metadata = of_metadata.load_exif_from_file("image.jpg")
```

For examples of usage, see the relevant files in the tests directory.

Based on the metadata file in [OpenFlexure Stitching](https://gitlab.com/openflexure/openflexure-stitching)
