filename.gif to filename_01.png, filename_02.png, etc.
Posted: 2015-11-28T07:28:14-07:00
Hello,
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 :
and get walk_01.png, walk_02.png, etc. perfect.
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 :
or
but nothing works properly, it seems that the second expression with % is ignored.
Does anyone know how to do that ?
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 ?