You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method sets the loop count for the GIF to be generated. Specifications for the loop number
818
+
are given by ffmpeg as follows:
819
+
-1: No-loop (stop after first playback)
820
+
0: Infinite loop
821
+
1..65535: Loop n times up to a maximum of 65535
822
+
823
+
:param loop_count: The number of loops in the GIF to be generated.
824
+
:type loop_count: int
825
+
"""
826
+
deflimit(n: int, lower: int, upper: int):
827
+
returnmin(max(n, lower), upper)
828
+
829
+
self.__loop_count=limit(loop_count, -1, 65535)
830
+
813
831
defgen_gif(self) ->None:
814
832
"""Generate a GIF from the frames.
815
833
816
834
This method generates a GIF from the frames. The method uses the `ffmpeg` command to generate the GIF, with the frames per second (fps) set to the fps specified in the Terminal object. The generated GIF is saved with the name specified by `output_gif_name`.
0 commit comments