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?".
I know there are a few topics about a similar problem but I wasn't able to find a solution in the replies.
I want to process a folder including all subfolders. My (Batch)Script does that using the /R command but it saves all the results into the root directory.
Well, the simplest code to perform this job is just
FOR /R %%f IN (*.jpg) DO convert "%%f" -resize 2480x3508 "%%f"
The code is so easy is that I would just type it into a CMD box, in which case it would be
FOR /R %f IN (*.jpg) DO convert "%f" -resize 2480x3508 "%f"
I intentionally don't give examples like that on the Windows Usage page, because I would rather never do a thing like that, i.e. possibly overwriting thousands of files.
pipitas wrote:
So you think that's simpler than using 'mogrify' with only 1 occurrence of '%%f' ??
I should have written "the most straightforward way for an IM beginner" instead of "simpler". To me, Mogrify is one of the more exotic command line tools. The IM beginner is probably more used to Convert.