Read
Posted: 2017-05-26T05:27:21-07:00
Have code read img
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
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.
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.