Sorry should have done more homework before I wrote.

the answer is

$image->Set(density=>'72x72');

Dp.


On 4 May 2006 at 14:00, [email protected] wrote:

> Hi
> 
> ImageMagick 6.2.5 11/17/05 Q8
> 
> The command-line utility convert -resample will set an images 
> resolution to the desired size about without resizing the image. 
> 
> I am trying to get the same effect using PerlMagick but when I use
> $image->Resample('72x72') the images dimensions are changed
> accordingly. Have I got the syntax wrong?
> 
> I want the images to be 530 pixel along the widest axis with the
> resolution at 72dpi. The images are jpeg and I would bother with this
> step except Quark Xpress relies on the resolution when it renders an
> image on the page.
> 
> $image->Set(Type=>"TrueColor");
> $image->Profile(name=>'IPTC',
>       profile=>'',
>     );
> $x=$image->Resize(geometry=>"530x530");
> warn"$x"if"$x";
> $x=$image->Resample('72x72');
> 
> 
> Can anyone tell me if I am doing something wrong?
> Thanx.
> Dp.
> 


_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to