in reply to Re: Appending an image to a png file
in thread Appending an image to a png file

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