Adrian
Adrian

Reputation: 10911

How to lighten an image using ImageMagick like when using compare?

As you see in the answer “Diff” an image using ImageMagick, the "delta" image is somehow lightened:

enter image description here

How would I lighten an image just like that using ImageMagick?

Upvotes: 5

Views: 5164

Answers (2)

Kurt Pfeifle
Kurt Pfeifle

Reputation: 90213

To get exactly the same type of output, just use exactly the same command as in the answer ("'Diff an image using ImageMagick") you quoted.

Just compare the image in question with itself:

convert wizard: -frame 1 wizard.png
compare wizard.png wizard.png delta.png

will give you these images, original (left) and "delta" (right):

 

Update

Incidentally, I had suspected that @rostok's answer would somehow not use the correct parameter value for his -colorize operator. But his 80% happens to be exactly correct, as can be seen by the output below:

convert wizard.png -colorize 80% wiz-light.png

(Of course I had no choice to upvote @rostok's answer too... :-)       Actually, it is even a better answer than this one, because it hints to the OP that he could change the -colorize parameter, if he wants to change the degree of the operator.)

Upvotes: 4

rostok
rostok

Reputation: 2137

I assume you would like to lighten 2nd image so you get 3rd but without text. So from command line this should give same results:

convert porsche.png -fill white -colorize 80%  porshe_light.png

Upvotes: 9

Related Questions