Page 1 of 1

Posted: 2006-12-07T20:14:58-07:00
by magick
We could display your image with this command:
  • display -depth 8 -size 700x700 gray:Mand2.raw

Posted: 2006-12-09T10:12:44-07:00
by magick
For raw images, you must set the depth and size:
  • $image->Set( depth=>8, size=>'700x700');

Posted: 2006-12-10T09:35:43-07:00
by magick
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;