Page 1 of 1

montage concatenate with null:

Posted: 2015-08-29T19:46:51-07:00
by sebunger
Hi,

I'm trying to combine a number of images with equal dimensions into a single image by concatenating them without border or any decorations. However, sometimes I need to leave some of the tiles blank. I've tried this command line, but it seems to behave oddly (and contrary to documentation):

Code: Select all

montage -mode concatenate -tile 2x2 rose: rose: null: rose: im_example.png
I expected an image with 3 roses and a white field in the bottom left. however, I get this:

Image

Am I doing something wrong or is this a bug?

Thanks for your help,
Seb

Re: montage concatenate with null:

Posted: 2015-08-29T21:25:33-07:00
by fmw42
It seems to work this way:

Code: Select all

montage -tile 2x2 -geometry 70x46+0+0 rose: rose: null: rose: result.png
but oddly, if you leave off the WxH, I get your same result

Code: Select all

montage -tile 2x2 -geometry +0+0 rose: rose: null: rose: result.png
I suspect that without the WxH, montage does not know what size to make null: and so skips it.


Also if you leave off the geometry, it works fine, but you get lots of white space

Code: Select all

montage -tile 2x2 rose: rose: null: rose: result.png

Re: montage concatenate with null:

Posted: 2015-08-30T14:42:59-07:00
by sebunger
Yes, those are my exact results. The problem is that I don't necessarily know the geometry of the individual images, only that they are the same. I guess I could query that information and then use it in my script, but according to my understanding of the docs I thought it should work. Hence my post here.