Page 1 of 1

Batch recursive convert, replace files, windows

Posted: 2010-11-10T10:22:18-07:00
by dieworld
I have 2 folders with ~20 subfolders each, and with ~30 images in each subfolder. I want to scale up all these images to 150% with replacing original files. I could use "find . -name "*.jpg" -exec convert..." etc, but i'm on windows. Is there any solution for my problem?

Re: Batch recursive convert, replace files, windows

Posted: 2010-11-10T10:48:47-07:00
by GreenKoopa
Sounds more like a windows batch problem than an ImageMagick problem. I love Windows for many things, but the scripting is weak and often counter-intuitive to me. While I'm sure some batch expert can offer a solution, I personally prefer Perl for this kind of thing. ImageMagick has a Perl interface, but simply issuing the usual shell commands is often easier. If you foresee running into this kind of problem often, I think it is worth a little time to learn Perl or some other cross-platform scripting language.

If you already know how to use make, it could be an alternative solution to this problem.

I wish I had a more direct solution to offer. I'm sure one exists.

Re: Batch recursive convert, replace files, windows

Posted: 2010-11-10T20:09:30-07:00
by anthony
See IM Examples, Usage on Windows
http://www.imagemagick.org/Usage/windows/