Read

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
eyashkin
Posts: 2
Joined: 2014-04-28T05:03:07-07:00
Authentication code: 6789

Read

Post by eyashkin » 2017-05-26T05:27:21-07:00

Have code read img

Code: Select all

$pic = new Image::Grab;
$pic->url('http://192.168.1.8/snap.jpeg') or die;
$pic->grab;
$picture=  $pic->image;
I have problem:
If i print $picture or save Image is ok.

But i need after resize with Image::Magic and have problem i not can read this $picture

Code: Select all

$image = Image::Magick->new;
$x=$image->Read(file =>$picture );
$x=$i->Write('jpg:-');
Error Bad filehandle: ����JFIF��C

But if i save to file $picture and normal open this file in Image::Magick all is ok.
Please help me, read $picture for Image::Magick.

Post Reply