Resolution and image ratio ... ?

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
dbee

Resolution and image ratio ... ?

Post by dbee »

So if I have some images in a folder and I want to change their resolution to 72dpi ?

Code: Select all

convert myfolder/* -density 72x72
Now if I want all the images greater than 100px height to keep their aspect ratio but have a height 100 px ?

Code: Select all

convert myfolder/* -density 72x72 -resize x100>
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Resolution and image ratio ... ?

Post by anthony »

Try mogrify rather than convert... Warning mogrify is dangerious. keep a backup copy.

http://www.imagemagick.org/Usage/basics/#mogrify
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply