in reply to Appending an image to a png file

Check out this for a good document on using Image::Magick. I pulled the following off the website:

"The Append() method
append a set of images. For example,

$p = $image->Append(stack=>{true,false});
appends all the images associated with object $image. By default, images are stacked left-to-right. Set stack to True to stack them top-to-bottom."

Clearly the way you are trying to use the Append method is incorrect.

Sorry, but as I have never used the program or the package, this is as much help as I can offer.

davidj

Replies are listed 'Best First'.
Re^2: Appending an image to a png file
by Nalina (Monk) on Aug 04, 2004 at 05:29 UTC
    I tried using append function, the script is as follows.
    #!/usr/local/bin/perl use Image::Magick; my($image, $p, $q); $image = new Image::Magick; $image->Read('d:\\d\\Graph.xls..PNG','d:\\d\\Sample.jpg'); $p = $image->Append(stack=>{true,false}); $p = $image->Write('d:/pimage.jpg');
    this creates 2 files 'pimage.jpg.0' & 'pimage.jpg.1', and the read file images are placed in these two files. But I have mentioned the o/p file name as 'pimage.jpg'. I want both the images to be in the same file(pimage.jpg). How can I get it?

    Thanks & Regards

    Nalina