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.

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.1.tar.gz (85.0 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.1-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hdr_conversion-0.1.1.tar.gz
  • Upload date:
  • Size: 85.0 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.1.tar.gz
Algorithm Hash digest
SHA256 952a352dc159f641a2e40bf916cf2b328c437e44cfe0b46992ffc18eb2d96a51
MD5 84b1acd31e2e7189272874c118494fe3
BLAKE2b-256 d0d6c3ca09f274fd2921a800e66b04029a9779b517a72a90bb9d33db2bf878f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdr_conversion-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf9c5c3fa5e2575f5ab6423ac1b1e13edd1fde52eefbe9bc4049d15e24df55b8
MD5 74aab4c2abd15a667ea21b1940681a5c
BLAKE2b-256 665337623d47ef291a20e4e118c732132153a55f1f049e242a710db75d13f87d

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