lovell / lovell/sharp

Reading HDR AVIF results in very bad colors.

Open
#4,264 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
32.7k
Forks
1.4k
Avg merge
1d 14h
Merged PRs (30d)
5

Description

## Question about an existing feature

### What are you trying to achieve?
Trying to read HDR AVIF image. While reading HDR JXL works fine, AVIF results in very bad colors.

### When you searched for similar issues, what did you find that might be related?
Yes, nothing was found. We have enabled high bitdepth for libaom library at compile time `-DCONFIG_AV1_HIGHBITDEPTH=1`

### Please provide sample image(s) that help explain this question
[01_base_hdr.avif.zip](https://github.com/user-attachments/files/17737343/01_base_hdr.avif.zip)

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

Begin by reproducing the report with the attached 01_base_hdr.avif.zip sample and the stated libaom high-bit-depth build setting. Compare the AVIF result with the HDR JXL result; done means the HDR AVIF displays with correct colors rather than the reported severe color distortion.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.