For example try this (quotes needed to protect the filename from the command line shell)
Code: Select all
convert rose: -duplicate 4 -set filename:base %t \
-reverse -set filename:index %t +adjoin "rose-%[filename:base]-%[filename:index].gif"
rose-4-0.gif rose-3-1.gif rose-2-2.gif rose-1-3.gif rose-0-4.gif
But I am getting...
rose-%[filename:base]-%[filename:index]-0.gif
rose-%[filename:base]-%[filename:index]-1.gif
rose-%[filename:base]-%[filename:index]-2.gif
rose-%[filename:base]-%[filename:index]-3.gif
rose-%[filename:base]-%[filename:index]-4.gif
That is the %[filename:...] escape is not being substituted.
Version: ImageMagick 6.7.1-1 2011-07-25 Q16
downloaded and compiled from SVN.