Page 1 of 1

how to combine pipes into one? thanks

Posted: 2012-08-05T22:27:35-07:00
by kissson
my command on windows command prompt, I am looking for a way to increase performance
convert input.png -resize 854x480^> - | ^
composite -watermark 30%% watermark.png - - | ^
convert - -background gray90 -gravity center -extent 854x480 out.png

can convert use the composite method ?
thanks

Re: how to combine pipes into one? thanks

Posted: 2012-08-05T22:42:20-07:00
by anthony
That should work fine.... under UNIX (with the correct command meta-char conversions)

Though the inout '-' for composite needs two images!

I am not certain under DOS.


actually you can do it all in one command without a pipeline! Con vert can do image composition.
'watermark' is known as 'modulate'.

http://www.imagemagick.org/Usage/compose/#watermark

Re: how to combine pipes into one? thanks

Posted: 2012-08-06T00:46:39-07:00
by kissson
I can't get
-compose modulate -define compose:args=50 -composite
working, unwanted outcome produced

now I found it how to make it in single command,
convert -size 800x600 xc:red input.png
convert -size 100x100 xc:yellow watermark.png
convert input.png -resize 854x480^> ^
( watermark.png -alpha set -channel A -evaluate multiply 0.33 +channel ) ^
-composite ^
-background gray90 -gravity center -extent 854x480 ^
out.png

thx http://studio.imagemagick.org/discourse ... 74&p=66759