Re: strange behavior of -density

jinsong zhao <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
I am so sorry....

I just found the reason was the unit of resolution in tiff and png was
different...

Regards,
Jinsong

On Sun, Oct 18, 2009 at 5:31 PM, jinsong zhao <[email protected]> wrote:

> Hi there,
>
> I use `convert' to convert some figure in tiff format (in 300dpi) to png
> with lower resolution:
>
> convert -density 30 -resize 10% input.tiff output.1.png
>
> and I get the output.1.png with resolution 29 dpi. it seems right.
>
> However, if I convert the original tiff to png with the same resolution,
> and then convert the png to lower resolution png or tiff, I get different
> resolution.
>
> convert input.tiff output.2.png
> convert -density 30 -resize 10% output.2.png output.3.png
>
> and I get the output.3.png with resolution 76 dpi.
>
 <snip>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.