Page 1 of 1

how to set colorspace prior to a long series of converts

Posted: 2013-04-26T10:58:54-07:00
by wfzimmerman
hi,

I want to set the colorspace as CMYK prior to a long series of (independent) convert commands in a bash script, then return it to sRGB when the script is done. How do I do that?

FredZ

Re: how to set colorspace prior to a long series of converts

Posted: 2013-04-26T11:45:10-07:00
by snibgo
Each convert command is independent of the others. You might use a shell variable in each convert command, of course.

Re: how to set colorspace prior to a long series of converts

Posted: 2013-04-26T11:46:25-07:00
by fmw42
convert image -colorspace CMYK tempimage
...
convert tempimage -colorspace sRGB result

HOWEVER, it is not recommended to process in CMYK colorspace. Many IM functions assume that the colorspace is RGB not CMYK and will not function properly if it is not RGB