[magick-users] specify inch, update dpi based on pixelsize

Per pja at itfabriken.se
Fri Feb 2 13:59:28 CST 2007


Correct, I want to alter the density. But I want to specify the geometry in 
inch or cm,
and have IM to calculate the dpi automatically. Is that possible?

----- Original Message ----- 
From: "Beginner" <dermot at sciencephoto.com>
To: "Per" <pja at itfabriken.se>; <magick-users at imagemagick.org>
Sent: Friday, February 02, 2007 8:51 PM
Subject: Re: [magick-users] specify inch, update dpi based on pixelsize


> On 2 Feb 2007 at 19:50, Per wrote:
>
>> I dont want to resample. I want to change the dpi, but I want to specify 
>> the
>> inch.
>>
>> ----- Original Message ----- 
>> From: <omicronpersei8 at imagemagick.org>
>>
>>
>> >> How do I update the dpi of an image while making IM calculate the 
>> >> actual
>> >> dpi?
>> >
>> > Try -resample.
>
> If you don't want to resample because you don't want to alter the
> original image then perhaps -density is what your after.
>
> from 6.2.4 docs:
>
> ..snip:
> The density option is an attribute and does not alter the underlying
> raster image. It may be used to adjust the rendered size for desktop
> publishing purposes by adjusting the scale applied to the pixels. To
> resize the image so that it is the same size at a different
> resolution, use the -resample option.
>
>
> also see -units
>
> HTH,
> Dp.
>
>
> 



More information about the Magick-users mailing list