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
Problem with image magic change .tiff to png extension
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Problem with image magic change .tiff to png extension
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
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
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
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Problem with image magic change .tiff to png extension
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
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