NOTE: i made a mistake by sending my reply yesterday (pasted below) to Jeff instead of the list, so i'm resending it so that others have a chance to improve/comment on my suggestions.
===================
I'm new to ImageMagick and have a montage question. I'm trying to produce a 20x30 poster containing 98 images (in a 7x14 grid). I can do the math to produce the final image size that I want (which is actually just a bit less than 20x30), but I'm wondering if there is an easier way. I'm getting satisfactory results using something (approximately) like this: montage.exe 2006*.jpg[544x408] -size 1024x1024 -tile 7x14 -geometry 544x408+5+5 montage.jpg ... but only because I calculated the required image dimensions and spacing values. What I'd like to be able to do is specify that I want a 20x30 canvas containing a 7x14 grid of images with 0.5" borders around the outer edge and a 5 pixel border between images - and then let ImageMagick determine the proper image sizes.
i don't know of an easy way, but the 20x30 spec - if that is in inches - is not too relevant. for example, one could print a 2 pixel by 3 pixel image at 20x30 inches. no offense intended, that is just a trivial example to make a point that the final pixel dimensions of the montage are not critical. if i did need the final size of the montage to be X by Y pixels, then i'd just use a tile size to generate a larger montage, then resize (shrink) the montage to X by Y pixels
Is this currently possible? Obviously, I could write some code to figure this stuff out and then construct the proper command line, but I don't want to reinvent the wheel if it already exists. Short of that, the above command line gives me 10 pixels between adjacent images, but only 5 pixels around the outer edge. Is there a way to specify the width of the outer border independently?
to balance the borders, i'd first ignore the outer border and make the montage to get the between-tile borders correct. then i'd trim off the outer border with the -trim option. then i'd add the outer border. lastly, I'd change my perspective on between-tile border widths from a pixel dimension to a percentage of the tile width. hth. best, mike _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
