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.

Note: PyExifTool requires the exiftool executable in the system path, see https://exiftool.org/ . Otherwise, reading Apple HEIC may hang without prompt. Please use exiftool -ver to check if it is installed correctly. This issue will be fixed in the next version.

API Reference: https://jackchou00.github.io/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.

Add experimental support for iOS 26 HDR screenshot parsing.

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.

UltraHDR I/O APIs: read_ultrahdr() / write_ultrahdr().

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.2.tar.gz (89.4 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.2-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file hdr_conversion-0.1.2.tar.gz.

File metadata

  • Download URL: hdr_conversion-0.1.2.tar.gz
  • Upload date:
  • Size: 89.4 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.2.tar.gz
Algorithm Hash digest
SHA256 eeeb736d97f8f21dc8766e1a8ba2a4f4201bb458899aeb9a5065e04d9a94ffa2
MD5 16b791e8d9b3e1e9ee110160e318b27c
BLAKE2b-256 efeac359f584ef139d1500c0b9a8aede9e73ef97c1f5ace3057090fc93713e90

See more details on using hashes here.

File details

Details for the file hdr_conversion-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hdr_conversion-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hdr_conversion-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ecf857f24180821a00cacf812e19470e8e8205265152b5c865eabb8bd8232f7
MD5 c3135f3e44f77e26b873b38c91eff6fa
BLAKE2b-256 4f058bbe4ccd5419427f777ecb2da1966fec3ee69ed10c6a304a5563b643946b

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