Page 1 of 1

Noob on Windows: Resize all "Front.jpg" to 500x500 & rename

Posted: 2009-07-04T23:50:50-07:00
by magicman
Hi folks, I have been trying to find a solution for this on the boards but was unsuccessful - I am sure this is fairly simple for ImageMagick, but I just need some help:

Setting: Windows, one main folder, hundreds of subfolders (music albums) with lots of album art in them

Problem: Some folders don't have a "Folder.jpg" but only 600dpi scanned %albumtitle%_-_Artwork-Front.jpg images. To reduce load on my server I would like to have exactly 500x500px JPGs (ignoring aspect ratios of existing jpgs) in each folder where a Front-scan is found and it should be named Folder.jpg. The original should be left untouched.

Ideally, imagemagick would look whether Folder.jpg already exists in that folder and if so, skip the folder.

From what I read the "mogrify" shouldn't be used with that many images, so I guess a batch script should be employed. Will this be unicode-proof?

I'd be thrilled if someone has a solution to this problem.
Thanks for reading,

mm :)