定义ImageMagick转换的文件顺序 [英] Defining the file order for ImageMagick convert
本文介绍了定义ImageMagick转换的文件顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一堆 PNG
文件,名为 foo< bar> .png
我希望转换为TIF动画。 < bar>
是一个数字,从0到25不等,数量超过5。 ImageMagick将 foo5.png
放在动画的最后,而它应该是第二个。有没有办法,除了将文件重命名为 foo05.png
以将其放在正确的位置?
I have a bunch of PNG
files named foo<bar>.png
I wish to convert to TIF animation. <bar>
is a number varies from 0 to 25 in leaps of five. ImageMagick place foo5.png
last in the animation while it is supposed to be second. Is there a way, apart from renaming the file to foo05.png
to place it in the right place?
推荐答案
您只需提供PNG文件的顺序,因为它们应出现在动画中。使用:
You just give the order of your PNG files as they should appear in the animation. Use:
foo0.png foo5.png foo10.png foo15.png foo20.png foo25.png
而不是
foo*.png
毕竟,它只有6个不同的文件名,应该很容易输入:
After all, it's only 6 different file names which should be easy enough to type:
convert \
-delay 10 \
foo0.png foo5.png foo10.png foo15.png foo20.png foo25.png \
-loop 0 \
animated.gif
这篇关于定义ImageMagick转换的文件顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文