Page 1 of 1

Adjust Blue channel

Posted: 2016-08-09T12:21:19-07:00
by centesimiae
I have a request from a user to adjust the blue channel from 1.00 to 1.13 as in Photoshop. I understand that the -level operator is to be used, but can someone explain to me the correct usage of that operator in this context. Unfortunately, my graphics understanding is limited. Thanks for any info anyone can provide to enlighten me on how to achieve the desired effect.

Re: Adjust Blue channel

Posted: 2016-08-09T13:09:05-07:00
by snibgo
centesimiae wrote:I have a request from a user to adjust the blue channel from 1.00 to 1.13 as in Photoshop.
Even if I used Photoshop (which I don't), I'd need more information than that. Which PS operation is used? What PS measurement gives "1.00" or "1.13"?

Re: Adjust Blue channel

Posted: 2016-08-09T15:15:03-07:00
by fmw42
try

Code: Select all

convert image -channel blue -evaluate multiply 1.13 +channel result

Re: Adjust Blue channel

Posted: 2016-08-09T15:15:58-07:00
by centesimiae
From my limited understanding, Photoshop has a channel mixing interface that you can use to adjust individual channels. I am thinking that those numbers translate to a 13% increase of the blue channel in the image. Sorry, that's all I understand at the moment. I'll try to post more once I do some more research. I was hoping someone could give me a laymen's explanation on how to use the -level operator.

Re: Adjust Blue channel

Posted: 2016-08-09T15:21:58-07:00
by centesimiae
Yes, I think that is exactly what I was looking for. Thank you so much for your effort and expertise!!!

Re: Adjust Blue channel

Posted: 2016-08-09T15:26:22-07:00
by fmw42
It is the channel mixer in PS, where they use percent, so 113% which translates to multiply by 1.13. It has nothing to do with -level. For that see http://www.imagemagick.org/Usage/color_mods/#levels