Page 1 of 1


Posted: 2017-05-26T05:27:21-07:00
by eyashkin
Have code read img

Code: Select all

$pic = new Image::Grab;
$pic->url('') or die;
$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 );
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.