Need output to have a specific file structure
Posted: 2008-07-16T08:46:53-07:00
I am new to Imagemagick and not exactly a Linux guru either so I apologized if this is question has been covered before.
I have an image folder, 'images', with subfolders named after the photographers. The folder 'images' would then contain numerous subfolders such as, 'john', 'frank', 'sue', etc. Those subfolders would then contain numerous photos. I need to resize all of the photos into three different sizes, 192x128, 384x256, and 768x512. I would like to output the files in a structure with the main folder of 'images' and within that, subfolders pertaining to the photographer ('john, 'frank', etc.) and within each of those, subfolders broken down into size ('92x128', '384x256', and '768x512') while appending the image size to the filename, such as image192x128.jpg.
I am able to run the command (from within 'images')
The images resize fine but they are all just dumped into the folder 'newImages'. Is there a way of finishing with the file structure that I am looking for?
Thanks,
Todd
I have an image folder, 'images', with subfolders named after the photographers. The folder 'images' would then contain numerous subfolders such as, 'john', 'frank', 'sue', etc. Those subfolders would then contain numerous photos. I need to resize all of the photos into three different sizes, 192x128, 384x256, and 768x512. I would like to output the files in a structure with the main folder of 'images' and within that, subfolders pertaining to the photographer ('john, 'frank', etc.) and within each of those, subfolders broken down into size ('92x128', '384x256', and '768x512') while appending the image size to the filename, such as image192x128.jpg.
I am able to run the command (from within 'images')
Code: Select all
convert */*.jpg -resize 192x128 newImages
Thanks,
Todd