Page 1 of 1

RGB tiff to LAB

Posted: 2016-03-31T07:39:54-07:00
by fredsmith999
I have a jpeg (that I want to use an argyll cms utility on). It needs to be first converted to a LAB tiff. I tried

Code: Select all

convert ducks.jpg -set colorspace LAB lab.tiff
but the colours were weird. The original was blueish. The new one had a orange sky. I tried using gimp to save it as a tiff before conversion. No difference. I am new to imagemagick and I assume the answer is obvious but I tried googling it and couldn't find anything. :(

Can anyone help? Thank you!

Re: RGB tiff to LAB

Posted: 2016-03-31T07:52:55-07:00
by snibgo

Code: Select all

-set colorspace LAB
That tells IM that the pixel values in the image really represent Lab, not sRGB or anything else. What you want is:

Code: Select all

-colorspace LAB
This changes the values in the pixels, from sRGB or whatever the image is currently, to Lab.