Page 1 of 1

possible bug montage with gravity IM 6.7.7.6 Q16

Posted: 2012-06-06T16:16:42-07:00
by fmw42
IM 6.7.7.6 Q16 Mac OSX Snow Leopard

I am not getting -gravity to work in montage. Images are still centered in the frames.

Input:
Image

convert lena.jpg -crop 120x120 miff:- | montage miff:- -tile x3 -frame 5 -gravity northwest -geometry +5+5 lena_test.jpg

Result:
Image

Re: possible bug montage with gravity IM 6.7.7.6 Q16

Posted: 2012-06-07T10:10:19-07:00
by fmw42
Further information.

It is only a problem when the spacing from -geometry is other than zero.

Here is what it looks like if spacing is 0

convert lena.jpg -crop 120x120 miff:- | montage miff:- -tile x3 -frame 5 -gravity northwest -geometry +0+0 lena_test2.jpg

Image

Re: possible bug montage with gravity IM 6.7.7.6 Q16

Posted: 2012-06-07T13:38:09-07:00
by fmw42
I am wondering if correct behavior would be as follows:

1) If no size is specified in -geometry, only offsets, then keep each image to its proper size as in my last example above. But allow spacing via -geometry offsets to be permitted without padding to have all images be the same size.

2) Use size 0x0 in -geometry to mean to pad the images to the same size as the max image, but not resize. Then permit -gravity to align them in the frame as desired.

3) When non-zero size is specified, then resize to that size as is currently done.

I do not know if this is practical or not. But it could be a possible enhancement for the future.

Re: possible bug montage with gravity IM 6.7.7.6 Q16

Posted: 2012-06-07T19:46:34-07:00
by anthony
I think this should be left until we get around to doing 'layout' operations (which should encompass montage grids and even appending).

Re: possible bug montage with gravity IM 6.7.7.6 Q16

Posted: 2012-06-07T20:25:56-07:00
by fmw42
anthony wrote:I think this should be left until we get around to doing 'layout' operations (which should encompass montage grids and even appending).

Agreed. I can get a montage format that is presentable for my purpose for now.