catdad-experiments / catdad-experiments/heic-decode

Color differences

Open
#9 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
58
Forks
18
PR merge metrics
No merged PRs in 30d

Description

I’m trying to figure this one out quite a while, maybe @catdad has an idea?

I’m using heic-convert to generate a buffer from a HEIC file and I have not managed to get a exact similar before/after image. The color contrast seems to be increased, resulting in some burnouts, and colors in general don’t match the original heic image (checked with Photoshop and other image programs, which can handle color profiles).

Since heic-convert uses heic-decode, I’ve tried a different setup with heic-decode and afterwards lovell/sharp with the same results.

This is an example of a HEIC file, left: original HEIC file with Display P3 color profile, right: after heic-decode also with Display P3 color profile (scaled down)

![Bildschirmfoto 2021-05-07 um 20 41 20](https://user-images.githubusercontent.com/2060276/117495182-945ba300-af75-11eb-9bd1-1d1f6f83039a.png)

As you can see there are several differences, e.g. a more intense red in the bricks on the left side, more intense black floor and burnouts in the fur on the right side.

I’m trying to understand, which library is responsible for that. Is it a missing or wrong parameter in heic-decode or libheif-js or something fundamental in libheif itself? Are color profiles ignored somewhere on the way?

Thank you for your answer and great work!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.