unity gif 帧动画
The animated GIF always makes me chuckle; on one hand they seem like a relic of the "old web", on the other hand they aren't going anywhere and their meme-like presence seem to only make them more popular. If you browse through my , you'll notice that I've written a ton about animated GIFs, including , , , and more.
动画GIF总是让我发笑。 一方面,它们看起来像是“旧网络”的遗物,另一方面,它们却无处可去,它们的类似模因的存在似乎只会使它们更受欢迎。 如果浏览我的 ,您会注意到我写了很多有关动画GIF的文章,包括 , , ,和更多。
My curiosity recently brought me to asking how to detect how many frames were present in an animated GIF; as expected, ImageMagick had the answer:
我的好奇心最近使我问起如何检测动画GIF中存在多少帧。 不出所料,ImageMagick的答案是:
identify -format "%n\n" bitcoin.gif | head -n 1>> 101
What is this calculation useful for? I suppose if you have a media management site you could show each frame to a user so they could choose a poster
when converting to video. In any event, I was curious and simply had to find out!
此计算有什么用? 我想如果您有媒体管理站点,则可以向用户显示每个帧,以便他们在转换为视频时可以选择poster
。 无论如何,我很好奇,只需要找出答案即可!
翻译自:
unity gif 帧动画