Page 1 of 1

Read

Posted: 2017-05-26T05:27:21-07:00
by eyashkin
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.