[magick-developers] How to use "density" parameters

Glenn Randers-Pehrson glennrp at comcast.net
Fri Oct 26 12:25:50 PDT 2007


>Date: Fri, 26 Oct 2007 15:22:29 -0400
>To: m.zewe at free.fr
>From: Glenn Randers-Pehrson <glennrp at comcast.net>
>Subject: Re: [magick-developers] How to use "density" parameters 
>Cc: magick-developers at imagemagick.org" <magick-developers at imagemagick.org>
>In-Reply-To: <1193415260.4722125cc20e0 at imp.free.fr>
>
>At 06:14 PM 10/26/2007 +0200, you wrote:
>>
>>
>>Hello,
>>
>>I want to print picture with high resolution. I know that the attribute linked
>>to the resolution is the "density" parameters. But my problem is that I don't
>>know
>>how I can use it...
>>
>>I try different way
>>image->set(density=>"200")
>>image->set(density=>"200x200") etc...
>>
>>But the effect done is that the pictures are smaller, so I have to multiply the
>>size of the items represented on these pictures...
>
>Yes, that is how "density" works.
>
>>I just want to reduce the
>>size of one picture pixel, not want to play with the size (i.e make zoom in and
>>zoom out to look better...)
>
>You are asking for a coordinated "density" and "resize" to obtain the
>same size picture with a different amount of pixels.  That might be a
>useful feature.
>
>    -newdensity "200"
>would achieve
>    -resize (100*200/current_density%) -density 200
>
>>Is anyone here who know how parameterize this attribute???
>
>See above


More information about the Magick-developers mailing list