Page 1 of 1
Montage and drawing
Posted: 2011-12-28T18:29:06-07:00
by whugemann
I would like to draw some triangles (which are supposed to be "arrows") on of four images which I combined with Montage, i.e.:
Code: Select all
Montage -tile 2x2 -geometry 400x300+10+10 1.jpg 2.jpg 3.jpg 4.jpg -draw "polyline 200,300 400,300 300,400" result.jpg
However, Montage draws the triangle on each of the images, not on the combined one. Is there any way I can tell Montage that I want to draw on the result instead?
(The triangles shall indicate logical relationships between the arranged pictures.)
Re: Montage and drawing
Posted: 2011-12-28T19:00:50-07:00
by fmw42
I don't believe that montage is that sophisticated. In unix the easiest way would be to pipe the result from montage to the input of a new convert to do the drawing. I am not sure whether that is easy in Windows or not.
montage ..... miff:- | convert - -draw .... resultimage
Otherwise, you would likely need to save some temporary image from montage and do a convert command afterwards. Then delete the temporary image.
Re: Montage and drawing
Posted: 2011-12-29T04:42:40-07:00
by whugemann
montage ..... miff:- | convert - -draw .... resultimage
Well, I have just given it a try, although I did not expect this to work under Windows, but ...
... indeed, this works under Windows just as well! The pipe symbol is the same in Windows and it feeds STDOUT to STDIN just as well. But I have never seen it being used in such a way, i.e. as a stream operator. I 've just peformed a search on the Net and could not find another example of such use of the CMD pipe sysmbol.
So this defnitively something I have to incorporate on my Windows usage page!