Set(density,...)
Posted: 2011-01-26T06:11:56-07:00
Hi,
ImageMagick 6.6.5-8 Q16
I can't seem to set the density on a tiff image. Here's my code
I have moved the order of the Set/Read items around but it hasn't made a difference. Here the output from identify:
Thank in advance.
Dp
ImageMagick 6.6.5-8 Q16
I can't seem to set the density on a tiff image. Here's my code
Code: Select all
...
$image->Read($tif);
$image->Set(units=>'PixelsPerInch');
$image->Set(density=>'300x300');
$image->Set(density, '300x300'); # a little extra nudge
$image->Set(depth=>8);
$image->Resize(width=>$width, height=>$height);
$x = $image->Write(filename=> $new_name);
warn $x if $x
- Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 2847x3069+0+0
Resolution: 72x72
Print size: 39.5417x42.625
Units: PixelsPerInch
Type: TrueColor
Base type: TrueColor
Endianess: MSB
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
.....
Thank in advance.
Dp