Page 1 of 1
Problem with image magic change .tiff to png extension
Posted: 2009-04-24T09:31:34-07:00
by sandeep2852
Hi,
While testing the ImageMagick conversion command, it is unable to change the resolution when an image is being converted to png format. It is retaining the original resolution (300dpi) of the tiff to png. Can I get any help here?
Thanks,
Sandeep
Re: Problem with image magic change .tiff to png extension
Posted: 2009-04-24T09:43:19-07:00
by fmw42
best thing would be to post your command and your image so others can test
Re: Problem with image magic change .tiff to png extension
Posted: 2009-04-24T11:37:24-07:00
by sandeep2852
Thanks for your quick response.
Here is the command I am using. I am trying to upload the sample image but you could try this with any tiff image of 300dpi
convert.exe -quality 100 -geometry 46x46 -density 72x72 C:\300dpiTiffToTestPNGConversion.tiff C:\300dpiTiffToTestPNGConversion.png
Thanks you
Re: Problem with image magic change .tiff to png extension
Posted: 2009-04-24T11:54:21-07:00
by fmw42
What are you trying to do with -geometry? That is not usually a standalone option, but is normally used in conjunction with other options such as composite.
Also normally one puts the input image before the options. see
http://www.imagemagick.org/Usage/basics/#cmdline
This works for me with IM 6.5.1-6 Q16 Mac OSX Tiger:
convert logo: -density 300x300 logo_300dpi.tif
freds-mac-mini:~ fred$ identify -verbose logo_300dpi.tif
Image: logo_300dpi.tif
Format: TIFF (Tagged Image File Format)
Class: PseudoClass
Geometry: 640x480+0+0
Resolution: 300x300
convert logo_300dpi.tif -density 72x72 -quality 100 logo_72dpi.png
identify -verbose logo_72dpi.png
Image: logo_72dpi.png
Format: PNG (Portable Network Graphics)
Class: PseudoClass
Geometry: 640x480+0+0
Resolution: 72x72