BYPASS SHELL BY ./RAZORGANZ
Server: nginx/1.20.1
System: Linux iZdzfnv9mwfppeZ 5.10.134-19.2.al8.x86_64 #1 SMP Wed Oct 29 22:47:09 CST 2025 x86_64
User: apache (48)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //usr/local/lib64/python3.6/site-packages/PIL/__pycache__/GdImageFile.cpython-36.pyc
3

Zƍh�	�@sPdZddlmZmZmZddlmZddlmZ	Gdd�dej�Z
ddd	�Zd
S)a�
.. note::
    This format cannot be automatically recognized, so the
    class is not registered for use with :py:func:`PIL.Image.open()`.  To open a
    gd file, use the :py:func:`PIL.GdImageFile.open()` function instead.

.. warning::
    THE GD FORMAT IS NOT DESIGNED FOR DATA INTERCHANGE.  This
    implementation is provided for convenience and demonstrational
    purposes only.
�)�	ImageFile�ImagePalette�UnidentifiedImageError)�i16be)�i32bec@s eZdZdZdZdZdd�ZdS)�GdImageFilea%
    Image plugin for the GD uncompressed format.  Note that this format
    is not supported by the standard :py:func:`PIL.Image.open()` function.  To use
    this plugin, you have to import the :py:mod:`PIL.GdImageFile` module and
    use the :py:func:`PIL.GdImageFile.open()` function.
    ZGDzGD uncompressed imagescCs�|jjd�}t|�dkr td��d|_t|d�t|d�f|_|d}|rLdnd	}t|d
|�}|dkrp||jd<tj	d
|d
|dd
|dd��|_
dd|jd
|dddfg|_dS)Ni
��zNot a valid GD 2.x .gd file�L������ZtransparencyZXBGR�rawr)rr	i)rri)r
rr)
�fp�read�i16�SyntaxError�mode�_size�i32�inforrZpalette�sizeZtile)�self�sZ	trueColorZtrueColorOffsetZtindex�r�;/usr/local/lib64/python3.6/site-packages/PIL/GdImageFile.py�_open.s
&zGdImageFile._openN)�__name__�
__module__�__qualname__�__doc__�format�format_descriptionrrrrrr#sr�rcCsJ|dkrtd��yt|�Stk
rD}ztd�|�WYdd}~XnXdS)a)
    Load texture from a GD image file.

    :param filename: GD file name, or an opened file handle.
    :param mode: Optional mode.  In this version, if the mode argument
        is given, it must be "r".
    :returns: An image instance.
    :raises OSError: If the image could not be read.
    r&zbad modezcannot identify this image fileN)�
ValueErrorrrr)rr�errr�openJs
r)N)r&)r#�rrr�_binaryrrrrrr)rrrr�<module>s
'