[SOLVED] create 2 images from 4
Posted: 2012-07-21T14:32:46-07:00
I have two B&W input images, which need to be stitched together to serve as mask in a later command.
Secondly, I need to create two canvases (or gradients) of the same size as the two input files and stitch them together.
This is how I did it (simplified example):
This achieves the desired result but I would be interested to know whether there's a more elegant way. It seems a bit daft to stitch all four together first and then split them into two.
Secondly, I need to create two canvases (or gradients) of the same size as the two input files and stitch them together.
This is how I did it (simplified example):
Code: Select all
convert pic1.svg pic2.svg \
\( -clone 0 -tile xc:yellow -draw "color 0,0 reset" \) \
\( -clone 1 -tile xc:red -draw "color 0,0 reset" \) \
-bordercolor black -border 5% \
-append -crop 100x50% out-%d.png