Posted: 2006-12-07T20:14:58-07:00
We could display your image with this command:
- display -depth 8 -size 700x700 gray:Mand2.raw
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://download.imagemagick.org/discourse-server/
https://download.imagemagick.org/discourse-server/viewtopic.php?t=7970
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;