Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/PIL/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/PIL/__pycache__/ImageSequence.cpython-310.pyc
o

Z#�a:�@sGdd�d�Zddd�ZdS)c@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�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.
    cCs,t|d�s	td��||_t|jdd�|_dS)N�seekzim must have seek method�
_min_frame�)�hasattr�AttributeError�im�getattr�position)�selfr�r�3/usr/lib/python3/dist-packages/PIL/ImageSequence.py�__init__s
zIterator.__init__c
Cs4z
|j�|�|jWSty}zt|�d}~ww�N)rr�EOFError�
IndexError)r
�ix�errr�__getitem__%s��zIterator.__getitem__cCs|Srr)r
rrr�__iter__,szIterator.__iter__c
CsDz|j�|j�|jd7_|jWSty!}zt|�d}~ww)N�)rrr	r�
StopIteration)r
rrrr�__next__/s��zIterator.__next__N)�__name__�
__module__�__qualname__�__doc__r
rrrrrrrrsrNcs`t|t�s|g}g}|D]}|��}|dd�t|�D�7}|�|�q�r.�fdd�|D�S|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.
    cSsg|]}|���qSr)�copy)�.0�im_framerrr�
<listcomp>H�zall_frames.<locals>.<listcomp>csg|]}�|��qSrr)rr��funcrrrKr )�
isinstance�list�tellrr)rr"�ims�
imSequence�currentrr!r�
all_frames8s
	r)r)rr)rrrr�<module>s%

Youez - 2016 - github.com/yon3zu
LinuXploit