
    g                     H    d Z ddlmZ ddlZddlmZmZ eedd              Zy)zMoviePy video GIFs writing.    N)requires_durationuse_clip_fps_by_defaultc                    t        j                  |      }t        j                  |dd      5 } |d|z         | j	                  ||d      D ]  }|j                  |d|z  |	        	 d
d
d
       y
# 1 sw Y   y
xY w)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          e/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/moviepy/video/io/gif_writers.pywrite_gif_with_imageior   	   s     ''/F	Hc(	3 vAHLM%%#fG%L 	ELLs
  	  s   =A55A>)Nr   bar)	__doc__
imageio.v3v3r   r   moviepy.decoratorsr   r   r        r   <module>r#      s-    !   I 	  	r"   