Page 1 of 1

Syntax for command line

Posted: 2011-03-14T14:59:00-07:00
by jburkhart68
What is the proper syntax to use when using command-line when try to do the following:

mogrify -units PixelsPerInch

I want to change the resolution of a 300 dpi image to 72 dpi

Thanks,
Jeff

Re: Syntax for command line

Posted: 2011-03-14T16:16:53-07:00
by fmw42
see http://www.imagemagick.org/Usage/basics/#mogrify

something like:

mogrify -units pixelsperinch -density 72 -format jpg *.jpg

give the above a try and see if that works. However, I recommend using -path to put the new images in a new folder, so you have not overwritten the old ones with something that did not work the way you want.


but also see viewtopic.php?f=2&t=18241#p69728, which may not carry over to mogrify.

Re: Syntax for command line

Posted: 2011-03-15T16:16:05-07:00
by jburkhart68
Thank you very much. That worked great! Still trying to learn the syntax I need to be using.

Jeff

Re: Syntax for command line

Posted: 2011-03-15T16:27:17-07:00
by fmw42