convert 30000 images using 'convert' instead of 'mogrify'?
Posted: 2009-02-04T18:56:06-07:00
Hello,
This must be something very simple and obvious, but I have wasted a whole day today. I have thousands of timeseries images, which I need to convert their format. Normally, I would have done the following:
mogrify *.tif -separate -background black -compose plus -flatten *.tif
However, my version of mogrify does not recognize '-compose' option (sigh), and I am using ImageMagick 6.4.8-9 (latest).
The above works fine with 'convert' for a single image, eg,
convert img0001.tif -separate -background black -compose plus -flatten img0001_conv.tif
How do I use 'convert' to repeat the same task for many images? I have spent a lot of time searching this forum, but no answers found so far.
Thank you.
This must be something very simple and obvious, but I have wasted a whole day today. I have thousands of timeseries images, which I need to convert their format. Normally, I would have done the following:
mogrify *.tif -separate -background black -compose plus -flatten *.tif
However, my version of mogrify does not recognize '-compose' option (sigh), and I am using ImageMagick 6.4.8-9 (latest).
The above works fine with 'convert' for a single image, eg,
convert img0001.tif -separate -background black -compose plus -flatten img0001_conv.tif
How do I use 'convert' to repeat the same task for many images? I have spent a lot of time searching this forum, but no answers found so far.
Thank you.