Code: Select all
$pic = new Image::Grab;
$pic->url('http://192.168.1.8/snap.jpeg') or die;
$pic->grab;
$picture= $pic->image;
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:-');
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.