Skip to main content

tools for converting HDR images between different formats

Project description

HDR Format Conversion Tool

简体中文 | English

Note: In alpha stage, API may change frequently. Currently, color conversion may be incorrect.

Project Overview

This project provides Python-based research on HDR format parsing and writing, supporting parsing, writing, and conversion of multiple formats including UltraHDR, Adaptive Gainmap (ISO 21496-1), and pure PQ/HLG formats (ISO 22028-5).

Note: This project is for research and learning purposes only and does not aim for production readiness.

Getting Started

To install, using uv (recommended):

uv add hdr-conversion

or use pip:

pip install hdr-conversion

The package can be imported as follows:

import hdrconv

Features

Parsing

For UltraHDR and Adaptive Gainmap formats, supports structured extraction of:

  • Main image data
  • Gainmap image data
  • Gainmap metadata

For pure PQ/HLG formats, supports extraction of image data and related metadata.

Writing

Writes image data and structured metadata into corresponding formats.

UltraHDR and Adaptive Gainmap formats are implemented through manual byte stream editing combined with existing library JPEG encoding capabilities, while pure PQ/HLG formats are implemented through existing libraries.

Conversion

Calculates alternate images based on metadata to enable conversion between Gainmap and pure HDR formats.

Reference Standards

License

MIT. Please refer to the respective LICENSE files for specific format and dependency details.

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

hdr_conversion-0.1.0a2.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

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

hdr_conversion-0.1.0a2-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file hdr_conversion-0.1.0a2.tar.gz.

File metadata

  • Download URL: hdr_conversion-0.1.0a2.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hdr_conversion-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 683079fe70b53fef71df16cf50b7abf1858448fdfdb8164f2bb53b25768ef9b9
MD5 4082cfba496fca628edc2b4ccbb5e933
BLAKE2b-256 c5d75fcdb212a5536083ceca0d541444131cf534bd07a5d2a10b612b1174bc4d

See more details on using hashes here.

File details

Details for the file hdr_conversion-0.1.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for hdr_conversion-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 8dac27badb0cdbaab897bf64e6d5193c60bdb16b405c6ad5a625d099864d6b6e
MD5 5e6e55e9648384c997d2d19c4b388204
BLAKE2b-256 e7bfc879813a245b2727dce02fdbae49bd31a20b07abc2128d2d07f589f8bb2a

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