Skip to main content

tools for converting HDR images between different formats

Project description

HDR Format Conversion Tool

简体中文 | English

Important Note: In alpha stage, API may change frequently. Currently, color conversion may be incorrect. This project is still in a very early stage, please submit issues or contact the author directly if you encounter any problems.

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.3.tar.gz (92.1 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.3-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hdr_conversion-0.1.3.tar.gz
  • Upload date:
  • Size: 92.1 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.3.tar.gz
Algorithm Hash digest
SHA256 3ad745fcb100cf70c2c4632c1dbee222660203a8e6624c5df54fa0794033d5f0
MD5 73834306d2cfca7680b6a698147cbd23
BLAKE2b-256 ba7d2a57995a0df09afb26050584e302ccc5967bd88c818df35ceaa326505427

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdr_conversion-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 35.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3e2ee7294b8bec7ea7102c3ced19c9e261ae57b4ca8ef93306e5d62104edf589
MD5 d4e1e3737fff5f0c24be32780f383b34
BLAKE2b-256 79de2373ec544b6550fc16f5b62e69e4cc004eb7872cf5c43a0f45d367ce7fa9

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