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