How do you change the "Color Balance" like in Photoshop?

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
floyd
Posts: 2
Joined: 2012-05-01T01:14:36-07:00
Authentication code: 13

How do you change the "Color Balance" like in Photoshop?

Post by floyd »

Hey, I'm new here, so sorry if that question has already been asked/answered somewhere else, but I couldn't find anything on the forum or on Google. I also looked at http://www.imagemagick.org/script/comma ... ptions.php, but I'm not sure what to use in this case? -level-colors, maybe?

So, here is the original image:
Image

And here is what it should end up looking like:
Image

And I used the following settings in PS:
Image

Does anyone know how to do this? Can this even be done with IM without using some other script? Any help will be very much appreciated!
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: How do you change the "Color Balance" like in Photoshop?

Post by glennrp »

-gamma 1,1.4,.01 produces similar colors although the shuttle is a bit yellow.
-gamma 1,.5,.01 makes a nice image too, looks like taken in sunset
floyd
Posts: 2
Joined: 2012-05-01T01:14:36-07:00
Authentication code: 13

Re: How do you change the "Color Balance" like in Photoshop?

Post by floyd »

Thanks, Glenn! :) I guess I'll play around a lil more with -gamma.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do you change the "Color Balance" like in Photoshop?

Post by fmw42 »

If you are on Linux, Mac or Windows w/Cygwin, see my unix bash script, colorbalance, at the link below.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How do you change the "Color Balance" like in Photoshop?

Post by anthony »

glennrp wrote:-gamma 1,1.4,.01 produces similar colors although the shuttle is a bit yellow.
-gamma 1,.5,.01 makes a nice image too, looks like taken in sunset
WARNING: this will not likely work in IMv7 due to the use of mutliple channels
Multi-value lists is turned off at the moment, and no I did not do this - cause was underlying library change.
You may need to use -channel to restrict what channel each gamma value affects.

Adding this note IMv7 porting.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do you change the "Color Balance" like in Photoshop?

Post by fmw42 »

IM has -tint. I just created a new script, midtonebalance, to do colorbalance like in PS, but only for midtones.
rxla8
Posts: 1
Joined: 2013-12-11T12:37:40-07:00
Authentication code: 6789

Re: How do you change the "Color Balance" like in Photoshop?

Post by rxla8 »

fmw42 wrote:IM has -tint. I just created a new script, midtonebalance, to do colorbalance like in PS, but only for midtones, as seen here.
Would you mind sharing the script? The midtones colorbalance is what I need, your help is appreciated!
Last edited by rxla8 on 2014-01-13T12:23:20-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How do you change the "Color Balance" like in Photoshop?

Post by snibgo »

Click on the link in fmw's signature.
snibgo's IM pages: im.snibgo.com
Post Reply