in reply to Re^2: reading image blob w/Image::Magick
in thread reading image blob w/Image::Magick

Image::Magick can read from perl filehandles though:
$image = Image::Magick->new; open(IMAGE, 'image.gif'); $image->Read(file=>\*IMAGE); close(IMAGE);
despite that, IO::Scalar wouldn't work?

Replies are listed 'Best First'.
Re^4: reading image blob w/Image::Magick
by salva (Canon) on Apr 16, 2006 at 22:12 UTC
    open(IMAGE, 'image.gif') opens a real file using the OS services but IO::Scalar objects exists only inside perl.

    You can see the difference using the fileno() builtin:

    open IMAGE, "image.gif"; printf "fn: %d\n", fileno(IMAGE); my $ios = IO::Scalar->new; printf "fn: %d\n", fileno($ios);