- display -depth 8 -size 700x700 gray:Mand2.raw
.RAW Conversion; please try on your ImageMagick installation
This script work:
Code: Select all
use Image::Magick;
print "Content-type: image/png\r\n\r\n";
$image=Image::Magick->new;
$image->Set( depth=>8, size=>'700x700');
$image->Set(density=>600);
$x = $image->Read('gray:Mand2.raw');
warn $x if $x;
$image->Set(magick=>'png');
binmode STDOUT;
$x = $image->Write('png:-');
warn $x if $x;