in reply to $image->Write("/folder??

I think this is a clear case of RTFM ;)

Image::Magick will show you that there is a web page set up for this module. And on that webpage it shows you:

To write an image in the PNG format to a PERL filehandle, use: $filename = "image.png"; open(IMAGE, ">$filename"); $image->Write(file=>\*IMAGE, filename=>$filename); close(IMAGE);

Of course, $filename can contain a specific path.

HTH,

--
b10m

Replies are listed 'Best First'.
Re: Re: $image->Write("/folder??
by Koosemose (Pilgrim) on Jan 23, 2004 at 07:39 UTC
    ehh not really a case of RTFM, his usage is also correct. From the same section, just a little higher up:
    $image->Write(filename=>'image.png', compression=>'None');

    This may sound like a "duh!" but does the directory you are trying to write to exist already? IM won't create a new directory.