I want to replicate an image in an image object.  I'm building a montage 
of either one or multiple images to print multi-label pages.

In order to montage multiple copies of an image on a montage, the only 
thing I've found that works is to read the image file multiple times. 
For example,

   my $image = Image::Magick->new;
   $image->Read( $inf );
   $image->Read( $inf );
   $image->Read( $inf );
   $image->Read( $inf );
   my $montage = $image->Montage( tile=>"2x2", ... );
   $montage->Write( $outf );

That works fine, but seems a little, well, lame.  Can I just somehow 
replicate the images within $image?  I tried

   $image->[1] = $image->[0];

but that did nothing but confuse IM.

Clone() wants to generate a new image object; the Blob functions also 
don't seem quite what I need.

This is also important as I want to be able to generate an image to 
montage instead of always reading it from a file.  Right now, all I can 
think to do is create the new image, write it to a file, and then read 
it back in, and that seems completely broken...

I'm using Image::Magick 6.3.2.9

-- 
David N. Lombard
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to