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

If a png file can not be appended, atleast it can be written. How do I write images from 2 different png files to a single png file?

I tried
#!/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'); $image->Write('d:\\pimage.jpg');
but this writes the images to two files 'pimage.jpg.0' & 'pimage.jpg.1'(each having one image). I want both the images to be in a single png file. How do I get it?

Thanks & Regards

Nalina

Replies are listed 'Best First'.
Re^3: Appending an image to a png file
by beable (Friar) on Aug 04, 2004 at 10:04 UTC
    Let's suppose you have two png images, one with a red background with a green circle on it; and the other one with a blue background with a yellow triangle on it. What output would you like to get?