Page 1 of 1

Heic converted correctly but displayed with wrong colorspace

Posted: 2019-11-28T01:24:59-07:00
by edwardoo
I have this heic image file from a Samsung Galaxy S10.

- It is converted correctly with:

Code: Select all

mogrify -format jpg *.heic
- It is displayed correctly if I say it's sRGB:

Code: Select all

display -colorspace sRGB 20191125_113126.heic
- but colors are completely off (washed out) by default (display 20191125_113126.heic)

Can display autodetect colorspace the same way as mogrify?

File link https://photos.app.goo.gl/tjqPPcAtsAEyMrdM8 (I can upload elsewhere if needed)

Re: Heic converted correctly but displayed with wrong colorspace

Posted: 2019-11-28T02:12:57-07:00
by snibgo
A HEIC file may not be sRGB, or any other "-colorspace" option. It may contain a profile, such as "Display P3".

I don't know if "display" takes regard of profiles. If not, then you should convert it to sRGB (or whatever your screen needs).

You can convert the image to sRGB, if you want, with "-profile sRGB.icc", assuming sRGB.icc is in your current directory.