Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Appending an image to a png file

by davidj (Priest)
on Aug 03, 2004 at 11:30 UTC ( [id://379584]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://379584]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found