Run a batch to a destination folder

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
FGG
Posts: 1
Joined: 2014-09-16T03:11:48-07:00
Authentication code: 6789

Run a batch to a destination folder

Post by FGG »

I have a textfile that contains a range of filenames of images. I want IM to convert each one of them into thumbnails and place them in a certain folder. I came up with this so far:

convert @"C:\Temp\list.txt" -thumbnail "50x50"

But how can I make sure IM creates the thumbnails in a specified folder, for instance C:\Thumbnails? I want the original images to be kept as they were.

TIA
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Run a batch to a destination folder

Post by snibgo »

Convert needs both input and output filenames. You could do this with convert, by reading the lines in the file and doing a convert for each one. That is how I would do it.

Or you could copy the input files to the output directory, then use mogrify.
snibgo's IM pages: im.snibgo.com
Post Reply