in reply to Re: Appending an image to a png file
in thread Appending an image to a png file
but got an Application error saying,use Image::Magick; $image = Image::Magick->new; open(IMAGE, 'd:\d\Sample.jpg'); print "test1\n"; $image->Read(file=>\*IMAGE); print "test2\n"; close(IMAGE); $filename = "test.png"; open(IMAGE, ">>$filename"); $image->Write(file=>\*IMAGE, filename=>$filename); close(IMAGE);
How to resolve this error?The instruction at "0x77f88216" referenced memory at "0x00000010". The + memory could not be "written". Click on OK to terminate the program.
|
|---|