Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/PIL/__pycache__/GdImageFile.cpython-310.pyc

45 lines
2.7 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>f<EFBFBD>
<00>@svdZddlmZddlmZddlmZmZmZddl m
Z ddl m Z ddlmZGd d
<EFBFBD>d
ej<06>Zdddd<12>ZdS)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.
<EFBFBD>)<01> annotations)<01>IO<49>)<03> ImageFile<6C> ImagePalette<74>UnidentifiedImageError)<01>i16be)<01>i32be)<01>StrOrBytesPathc@s"eZdZdZdZdZd dd<07>ZdS)
<EFBFBD> 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.
<20>GDzGD uncompressed images<65>return<72>NonecCs<>|jdusJ<00>|j<00>d<01>}t|<01>dvrd}t|<02><01>d|_t|d<05>t|d<06>f|_|d}|r/dnd}t|d |<00>}|d
krA||jd <t<08> d |d |dd |dd <00><00>|_
dd|j d |dd dfg|_ dS)Ni )i<><69>i<><69>zNot a valid GD 2.x .gd file<6C>L<><00><00>r<00><00><00> transparency<63>XBGRi<00>raw)rr)rrr) <0A>fp<66>read<61>i16<31> SyntaxError<6F>_mode<64>_size<7A>i32<33>inforr<00>palette<74>size<7A>tile)<06>self<6C>s<>msg<73>
true_color<EFBFBD>true_color_offset<65>tindex<65>r)<00>Q/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/PIL/GdImageFile.py<70>_open1s*   
 <06><02>
<EFBFBD>zGdImageFile._openN)r r)<07>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F>format<61>format_descriptionr+r)r)r)r*r &s
r <00>rr<00>StrOrBytesPath | IO[bytes]<5D>mode<64>strr c
CsF|dkr
d}t|<02><01>zt|<00>WSty"}zd}t|<02>|<03>d}~ww)a#
Load texture from a GD image file.
:param fp: 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.
r2zbad modezcannot identify this image fileN)<04>
ValueErrorr rr)rr4r%<00>er)r)r*<00>openTs


<08><02>r8N)r2)rr3r4r5r r )r/<00>
__future__r<00>typingr<00>rrr<00>_binaryrrr r<00>_typingr
r r8r)r)r)r*<00><module>s    .