Resolutions and dimensions

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
andrefaria
Posts: 3
Joined: 2013-10-17T10:39:09-07:00
Authentication code: 6789

Resolutions and dimensions

Post by andrefaria »

I have a directory with several images with different resolutions and dimensions.
I would like to standardize them at 72 dpi and with 300 px longest side with preserving the aspect ratio.
What should I do?
Thank you.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Resolutions and dimensions

Post by fmw42 »

Code: Select all

convert image -resize 300x300 -density 72 -units pixelsperinch result
see
http://www.imagemagick.org/script/comma ... p#geometry
Post Reply