creating animated gifs in several subfolders

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
hani

creating animated gifs in several subfolders

Post by hani »

Hi, I would like to create animated gifs in several subfolders within a folder called "testing" in F drive. The series of images in each subfolder are all in tif and I would like to convert the images to an animated gif within each subfolder. My script is written like this.

for /d %i in ("F:\testing\*) do convert -delay 20 *.tif -loop 2 animation.gif %i

However, it gives me this error message.

Magick: unable to open image '*.tif': Invalid argument @ error/blob.c/OpenBlob/2572

Your help is appreciated.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: creating animated gifs in several subfolders

Post by fmw42 »

I am no expert on animation or on Windows command line syntax, but I don't think IM will process from wildcard directories in your loop. But I will defer to others more expert than I.
Post Reply