RGB tiff to LAB

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
fredsmith999
Posts: 1
Joined: 2016-03-31T07:32:53-07:00
Authentication code: 1151

RGB tiff to LAB

Post 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!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: RGB tiff to LAB

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