403Webshell
Server IP : 146.190.157.162  /  Your IP : 216.73.217.127
Web Server : Apache
System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64
User : businessweek ( 639)
PHP Version : 8.2.10-2ubuntu2.2
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/PIL/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/PIL/__pycache__/ImageSequence.cpython-311.pyc
�

D#�dP��(�Gd�d��Zdd�ZdS)c�*�eZdZdZd�Zd�Zd�Zd�ZdS)�Iteratora-
    This class implements an iterator object that can be used to loop
    over an image sequence.

    You can use the ``[]`` operator to access elements by index. This operator
    will raise an :py:exc:`IndexError` if you try to access a nonexistent
    frame.

    :param im: An image object.
    c��t|d��sd}t|���||_t|jdd��|_dS)N�seekzim must have seek method�
_min_frame�)�hasattr�AttributeError�im�getattr�position)�selfr
�msgs   �3/usr/lib/python3/dist-packages/PIL/ImageSequence.py�__init__zIterator.__init__sG���r�6�"�"�	&�,�C� ��%�%�%��������q�9�9��
�
�
�c�z�	|j�|��|jS#t$r
}t|�d}~wwxYw�N)r
r�EOFError�
IndexError)r
�ix�es   r�__getitem__zIterator.__getitem__&sI��	$��G�L�L������7�N���	$�	$�	$��!�#�����	$���s� #�
:�5�:c��|Sr�)r
s r�__iter__zIterator.__iter__-s���rc��	|j�|j��|xjdz
c_|jS#t$r
}t|�d}~wwxYw)N�)r
rrr�
StopIteration)r
rs  r�__next__zIterator.__next__0s[��	'��G�L�L���'�'�'��M�M�Q��M�M��7�N���	'�	'�	'��Q�&�����	'���s�58�
A�A
�
AN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrrsZ������	�	�:�:�:�$�$�$����'�'�'�'�'rrNc����t|t��s|g}g}|D]G}|���}|d�t|��D��z
}|�|���H�r�fd�|D��n|S)a
    Applies a given function to all frames in an image or a list of images.
    The frames are returned as a list of separate images.

    :param im: An image, or a list of images.
    :param func: The function to apply to all of the image frames.
    :returns: A list of images.
    c�6�g|]}|�����Sr)�copy)�.0�im_frames  r�
<listcomp>zall_frames.<locals>.<listcomp>Is ��E�E�E�H��
�
���E�E�Erc�&��g|]
}�|����Srr)r'r
�funcs  �rr)zall_frames.<locals>.<listcomp>Ls!���#�#�#��D�D��H�H�#�#�#r)�
isinstance�list�tellrr)r
r+�ims�
imSequence�currents `   r�
all_framesr29s�����b�$�����T��
�C��!�!�
��/�/�#�#���E�E���0D�0D�E�E�E�E������ � � � �'+�4�#�#�#�#�s�#�#�#�#��4rr)rr2rrr�<module>r3sL��&#'�#'�#'�#'�#'�#'�#'�#'�L5�5�5�5�5�5r

Youez - 2016 - github.com/yon3zu
LinuXploit