
    W|h                     J    S r SSKJr  SSKrSSKJrJr  \\SS j5       5       rg)zMoviePy video GIFs writing.    N)requires_durationuse_clip_fps_by_defaultc                     [         R                  " U5      n[        R                  " USSS9 nU" SU-  S9  U R	                  X$SS9 H  nUR                  USU-  US	9  M     S
S
S
5        g
! , (       d  f       g
= f)zAWrites the gif with the Python library ImageIO (calls FreeImage).wpillow)pluginz(MoviePy - Building file %s with imageio.)messageuint8)fpsloggerdtypei  )durationloopN)proglogdefault_bar_loggeriioimopeniter_frameswrite)clipfilenamer   r   r   writerframes          V/home/james-whalen/.local/lib/python3.13/site-packages/moviepy/video/io/gif_writers.pywrite_gif_with_imageior   	   sw     ''/F	Hc(	3vAHLM%%#G%LELLs
   M 
4	3	3s   5A++
A9)Nr   bar)	__doc__
imageio.v3v3r   r   moviepy.decoratorsr   r   r        r   <module>r#      s-    !   I 	  	r"   