Page 1 of 1

how to convert an image to sRGB color profile ?

Posted: 2019-05-04T07:45:22-07:00
by loki5100
Hello,

I have an .heic image (with come from an iOS device). How to convert it to sRGB ?
Before I was doing like this :

To convert to sRGB:
MagickProfileImage(Wand, 'icc', <sRGB2014.icc>);
then I immediately delete the sRGB profile to win space
MagickProfileImage(Wand, 'icc', nil);

but it's seam to not work :(
After doing this the colors are completely wrong ...

thanks by advance
stéphane

Re: how to convert an image to sRGB color profile ?

Posted: 2019-05-04T09:01:01-07:00
by snibgo
What colorspace was the input image? Did it have an ICC profile? If it didn't, you need to assign one before converting to another profile.

There are many versions of sRGB, so deleting the profile is a bad idea.