Thanks Anthony- Looks like I may need to dig into "convert" a little more to get the precise control I'm looking for.
Regards, Ken On Mon, Aug 31, 2009 at 11:21 PM, Anthony Thyssen<[email protected]> wrote: > On Mon, 31 Aug 2009 22:50:08 -0700 > Ken Murphy <[email protected]> wrote: > > | I need to automate the creation of a large number of image files. > | Each of these image files must have an overall resolution of 1280 x > | 720, and each one will consist of a grid of many smaller image tiles. > | The number of images to be tiled may vary, but overall image must > | always be 1280 x 720. This seems very straightforward to me, so I > | feel I must be missing something... > | > Okay first "mogrify" is designed to loop over multiple existing > images, read them in process them and write them out. Back to the same > file typically, but not always. > > The "montage" command generates an array of thumbnails given the number > of array 'cells' to generate per page. It does not have any fine size > controls, though you can generally calculate how big the final image > will be, basied on the number of 'tile' cells. > > The "convert" command is the general work horse of IM and can pretty > well do ANYTHING. > > Their are lots of ways to do this. Adding 'fluff' like frames spacing > and labels make it harder. What method should be used depends on what > you want to achieve. > > Assuming just a simple grid of images. No extra spacing. Use "montage" > > Say the ALL the input images all have a aspect ratio of 4:3 the same > as the output image 1280x720 pixels. As long as you generate the same > number of images vertically and horizontally, you should have no > problem. Say 16 images per page in a 4x4 array. that makes each image > 320x180 pixels. > > montage images.... -tile 4x4 -geometry 320x180+0+0 result-%03d.png > > The %03d in the output specifys a image count as being 3 digits with > leading zeros. That way if you have more than 16 images you generate > multiple pages. > > WARNING: the above would read ALL images into memory first, then > resizes them. Your machine could run out of memory forcing the use of > slow disk. > > Because of this you may be better of looping and doing 16 images at a time. > > For more see > > Montage http://www.imagemagick.org/Usage/montage/ > Append http://www.imagemagick.org/Usage/layers/#append > > > Anthony Thyssen ( System Programmer ) <[email protected]> > ----------------------------------------------------------------------------- > Just do it! -- And if that fails -- Just undo it! > -- Matt Groenig (maker of the Simpsons) > ----------------------------------------------------------------------------- > Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ > _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
