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

How to resize large files only by mogrify

Post by etrader » 2017-10-27T09:24:58-07:00

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: 22081
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: How to resize large files only by mogrify

Post by fmw42 » 2017-10-27T09:57:14-07:00

Did you try

Code: Select all

mogrify -format jpg -flatten -resize 800\> images/*.*
Note it is 800\> not 800/>

etrader
Posts: 7
Joined: 2012-09-29T06:53:04-07:00
Authentication code: 67789

Re: How to resize large files only by mogrify

Post by etrader » 2017-10-27T10:25:44-07:00

Oh my bad. Worked perfectly.

Post Reply