Despite some researches I can't manage to do what I want.
I have several .gif files which contain animations that I want to split into several frames, so I use :
Code: Select all
convert -coalesce walk.gif -set filename:f '%t' 'walk_%02d.png'
Now I would like to write a generic function and replace "walk" by the filename and be able to execute the command only one time for all the .gif files.
I tried many things like :
Code: Select all
convert -coalesce *.gif -set filename:f '%t_%02d' '%[filename:f].png'
Code: Select all
convert -coalesce *.gif -set filename:f '%t' '%[filename:f]_%02d.png'
Does anyone know how to do that ?