ImageMagick help -- need to change DPI

Posted by StackOverflowNewbie on Stack Overflow See other posts from Stack Overflow or by StackOverflowNewbie
Published on 2010-06-02T22:58:24Z Indexed on 2010/06/02 23:24 UTC
Read the original article Hit count: 233

Filed under:

I have a 1000x1000 300dpi image that I need to convert to a 100x100 96dpi thumbnail. How do I do this in ImageMagick? I'm after the smallest possible file size at the highest possible quality.

Doing something like this:

convert myimage.png -quality 100 -resize 100 PNG8:mynewimage.png

.... does change the dimension, but still maintains the DPI. If I can get this to change to 96dpi, I should get a smaller file size.

I've tried -density, etc., but can't seem to make them work for me. Maybe I put the commands in the wrong order or passed the wrong parameters. Any assistance is greatly appreciated. Thanks.

© Stack Overflow or respective owner

Related posts about imagemagick