Edit images of sub-folders in one attempt

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
Mukesh Dasharath
Posts: 5
Joined: 2017-08-12T10:31:54-07:00
Authentication code: 1151

Edit images of sub-folders in one attempt

Post by Mukesh Dasharath »

Hi there,

I have 50 folders containing 3-4 images in each folder with 1000x1000 dimension
want to resize those in 400x600 dimension using IM script in once, How?

my command is- magick mogrify "D:\Test\Footwear\Bckp\*.jpg" -resize 400x600 "D:\Test\Footwear\Bckp\*.jpg"

IM Version: ImageMagick 7.0.7-38 Q16 x64 2018-06-02
Operating System: Windows 10
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Edit images of sub-folders in one attempt

Post by snibgo »

You can use "for" to loop through directories, eg "for /R %D in (.) do ..."

Type "help for" for help.
snibgo's IM pages: im.snibgo.com
Post Reply