code1:
SetDirectory["C:\\Users\\liugang\\Desktop\\gif\\"];
PicBegStr = "Cygwin_setup_";
Files = FileNames[PicBegStr ~~ "*.png", Directory[]];
Piclists = Import /@ Files
Export[PicBegStr ~~ "gif.gif", Piclists, "DisplayDurations" -> 1, "AnimationRepetitions" -> Infinity];
代码来源如下:
https://www.jianshu.com/p/fbf36614edf6
code2:
SetDirectory["D:\\Program Files\\DAUM\\PotPlayer\\Capture\\"];
images=FileNames["*.jpg"];
img=Table[Import[images[[i]]],{i,Length[images]}];
Export["波西米亚狂想曲.gif",img,ImageSize->Scaled[.8],"DisplayDurations"->.15,AnimationRepetitions->Infty]
代码来源如下:代码来源如下:
网友评论