Syntax for command line

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jburkhart68
Posts: 13
Joined: 2011-03-08T17:34:27-07:00
Authentication code: 8675308

Syntax for command line

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Syntax for command line

Post 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.
jburkhart68
Posts: 13
Joined: 2011-03-08T17:34:27-07:00
Authentication code: 8675308

Re: Syntax for command line

Post by jburkhart68 »

Thank you very much. That worked great! Still trying to learn the syntax I need to be using.

Jeff
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Syntax for command line

Post by fmw42 »

Post Reply