python-pillow / python-pillow/Pillow

Add support for Ultra HDR

Open
#8,036 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Python
Stars
13.8k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
89

Description

I would like to suggest to add the addition of the Ultra HDR format as a new way to read and write HDR images.

From a technical point of view it's similar to the MPO format, that it's a JPEG image, containing an additional data stream. In case of Ultra HDR this data stream is a gainmap.

This way a reader implementation not aware of Ultra HDR only sees the SDR JPEG image.

There are currently several open enhancement requests to add the format to various well (and less well known) libraries and tools:

There is also a library

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Android Ultra HDR description, gain-map references, and google/libultrahdr, then compare the request with Pillow's existing MPO handling. Done means Pillow can read and write Ultra HDR JPEGs while preserving the SDR image and gainmap, with both operations covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
computer-vision
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.