Heic converted correctly but displayed with wrong colorspace

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Locked
edwardoo
Posts: 1
Joined: 2019-11-28T01:17:19-07:00
Authentication code: 1152

Heic converted correctly but displayed with wrong colorspace

Post 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)

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Heic converted correctly but displayed with wrong colorspace

Post 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.
snibgo's IM pages: im.snibgo.com

Locked