How to resize large files only by mogrify

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
etrader
Posts: 13
Joined: 2012-09-29T06:53:04-07:00
Authentication code: 67789

How to resize large files only by mogrify

Post by etrader »

I convert non-jpg files to jpg in a folder with mogrify:

Code: Select all

mogrify -format jpg -flatten images/*.*
I want to resize files, which are larger than 800px in width.

With convert command, the solution is

Code: Select all

-resize 800/>
How can I do this with morigy, which well works with the files in a folder.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to resize large files only by mogrify

Post by fmw42 »

Did you try

Code: Select all

mogrify -format jpg -flatten -resize 800\> images/*.*
Note it is 800\> not 800/>
etrader
Posts: 13
Joined: 2012-09-29T06:53:04-07:00
Authentication code: 67789

Re: How to resize large files only by mogrify

Post by etrader »

Oh my bad. Worked perfectly.
Post Reply