tools for converting HDR images between different formats
Project description
HDR Format Conversion Tool
Note: In alpha stage, API may change frequently. Currently, color conversion may be incorrect.
API Reference: https://jackchou.top/hdr-conversion
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
- UltraHDR: Version 1.1 released in April 2025
- ISO 21496-1
- ISO 22028-5
License
MIT. Please refer to the respective LICENSE files for specific format and dependency details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hdr_conversion-0.1.0.tar.gz.
File metadata
- Download URL: hdr_conversion-0.1.0.tar.gz
- Upload date:
- Size: 80.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
859d3a963bb48e7603c5cc84a2df212b77a430fbb72406701cd08aff2db98589
|
|
| MD5 |
a29876d991b71430ed84263e1a568243
|
|
| BLAKE2b-256 |
7c4940e0f6ca57a83a8e46effad91dc759f5f8526252b1b0d0edd1bd1acf7cf2
|
File details
Details for the file hdr_conversion-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hdr_conversion-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d707540072d056596d8a169712b6747102c1d2699d6bc54b95e75160768dd31
|
|
| MD5 |
a8894900c8477cf63fa7e89b8c5c9cd9
|
|
| BLAKE2b-256 |
c9108de4ab1be4206bc08bd14e72c61d7e36d8a17300676d55be83369cc54f84
|