I have a pre-existing animated gif that loops once. If I read and write it with library(magick)
the resulting animated gif loops forever.
How do I get the saved animated gif to loop once, just like the original?
library(magick)
img <- image_read("ani.gif")
image_write(img, path = "ani2.gif", format = "gif")
我在命令行中使用过它,使它仅一次给定循环... 0表示永远循环。
convert -loop 1 ani.gif ani.gif
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.