Command for Increasing Image....

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
helloworld
Posts: 69
Joined: 2013-05-22T09:42:33-07:00
Authentication code: 6789

Command for Increasing Image....

Post by helloworld »

What is the command for increasing the image Brightness, Contrast, Hue and Saturation ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Command for Increasing Image....

Post by snibgo »

snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Command for Increasing Image....

Post by fmw42 »

You can also use -level and -sigmoidal-contrast to affect brightness and contrast. Also -evaluate multiply and -gamma as well.

see
http://www.imagemagick.org/Usage/color_mods/#level
http://www.imagemagick.org/Usage/color_ ... evel_gamma
http://www.imagemagick.org/Usage/color_mods/#sigmoidal

Some of the above are linear and others non-linear. There are lots of ways to affect brightness and contrast.

For a general review see http://www.imagemagick.org/Usage/color_mods/

For some one relatively new to Imagemagick, I would recommend

http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
helloworld
Posts: 69
Joined: 2013-05-22T09:42:33-07:00
Authentication code: 6789

Re: Command for Increasing Image....

Post by helloworld »

I am using below two commands for Brightness, Contrast Saturation and Hue

convert bw.jpg -brightness-contrast 0,100 bw1.jpg

0 = Brightness
100 = Contrast

convert bw.jpg -modulate 150,100,180 bw1.jpg

150 = Brightness
100 = Saturation
180 = Hue

My question is, can i use negative values like -150, -10 - 67 as values for Brightness, Saturation and Hue ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Command for Increasing Image....

Post by fmw42 »

-brightness-contrast allows negative values. -modulate does not. -modulate 100,100,100 is not change so to reduce brightness or saturation, use values less than 100.

see
http://www.imagemagick.org/script/comma ... p#modulate
http://www.imagemagick.org/script/comma ... s-contrast
helloworld
Posts: 69
Joined: 2013-05-22T09:42:33-07:00
Authentication code: 6789

Re: Command for Increasing Image....

Post by helloworld »

Thank you
Post Reply