I am doing this:
Code: Select all
convert input.jpg -channel all -normalize -output.jpg
I read about all that compose, composite, dissolve, clone and everything but I am quite confused, so if somebody was so kind and write me that command...
Thanks
Code: Select all
convert input.jpg -channel all -normalize -output.jpg
Code: Select all
convert input.jpg -normalize -alpha set -channel a -evaluate set 50% +channel output.png
Code: Select all
%IM%convert ^
in.jpg ^
( +clone ^
-normalize ) ^
-compose Blend -define compose:args=50 -composite ^
out.jpg
You are probably correct. It was not clear to me what he wanted.snibgo wrote:I think the OP wants something different. Windows BAT syntax:
and thought he just wanted 50% transparency.set the opacity of it to 50%
Code: Select all
convert \
in.jpg \
\( +clone \
-normalize \) \
-compose Blend -define compose:args=50 -composite \
out.jpg
TiborB wrote: Also, I can say the syntax is completely unintuitive
The ( ... ) clones, ie copies the input and applies -normalize. Then the input and the copied and process images are blended with a 50% (equal) weighting.snibgo wrote:%IM%convert ^
in.jpg ^
( +clone ^
-normalize ^ ) ^
-compose Blend -define compose:args=50 -composite ^
out.jpg
So there is, thanks. I have edited it. (I mean to hit newline after the first caret, to put the end-parenthesis on a new line, but didn't.)fmw42 wrote:I believe there is an extra ^ ...
Code: Select all
-compose Blend -define compose:args=50 -composite