Page 1 of 1

Resizing all JPGs in a folder and all subdirs

Posted: 2009-05-02T14:49:33-07:00
by Neurolysis
Hi,

I'm trying to use "mogrify -resize -contrast-stretch .3%,99.7% -resize 150x150 -quality 65" on a folder with a load of subdirectories, the top level folder doesn't have anything in, but there are two levels "/%artist%/%album%/" within it. Is there a switch to use mogrify recursively, and if not is there another solution?

Thanks.

Re: Resizing all JPGs in a folder and all subdirs

Posted: 2009-05-02T23:39:18-07:00
by anthony
mogrify is not recursive. It does not even know how to read a directory, just the file name you give it.


I suggest you look at 'find' in the Mogrify Alternatives
http://www.imagemagick.org/Usage/basics/#mogrify_not

Re: Resizing all JPGs in a folder and all subdirs

Posted: 2009-05-03T16:18:07-07:00
by Neurolysis
Sorry, for years I've used BSD but recently found it necessary to move over to Windows. How would I go about doing that in a command prompt? They certainly don't look like they are designed to work in a prompt.

Re: Resizing all JPGs in a folder and all subdirs

Posted: 2009-05-03T16:20:32-07:00
by fmw42
the best information about DOS Batch scripting in IM is at http://www.imagemagick.org/Usage/api/#windows