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

91 lines
7.8 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>f .<00>@sddlmZddlZddlmZddlmZmZddlm Z ddl
m Z m Z m Z mZddlmZdd lmZdd
lmZdd lmZdd lmZd Zd#dd<17>Zd$dd<1C>ZGdd<1E>d<1E>ZGdd <20>d e j <0A>Ze <0C>ejee<1B>e <0C> eje<1A>e <0C>!ejd!<21>e <0C>"ejd"<22>dS)%<25>)<01> annotationsN)<01>BytesIO)<02>ceil<69>log)<01>IO<49>)<04>BmpImagePlugin<69>Image<67> ImageFile<6C>PngImagePlugin)<01>i16le)<01>i32le)<01>o8)<01>o16le)<01>o32les<00>im<69> Image.Image<67>fp<66> IO[bytes]<5D>filename<6D> str | bytes<65>return<72>Nonec Cs<>|<01>t<01>|j<02>d<01>dk}|j<02>dgd<04><01>}g}|g|j<02>dg<00>}|j\}}tt|<04><01>D]m} | d|ksG| d|ksG| ddksG| ddkrHq-|D]<}
|
j| krRqJ|<05>|
<EFBFBD>|r<>tj |
j
d} | g} |D]} | j| krnqftj | j
d} | | vr<>|<05>| <0A>| <0C>| <0B>qfn|
<EFBFBD> <0B>}|j | t jjdd <09>|<05>|<0E>q-|<01>tt|<05><01><01>|<01><12>t|<05>d
}|D]<5D>}|j\}}|<01>t|dkr<>|nd<06><01>|<01>t|dkr<>|nd<06><01>|r<>tj |j
dd<00>nd \} }|<01>t|<10><01>|<01>d <0C>|<01>d <0A>|<01>t| <0B><01>t<14>}|<03>r|<0E>|d<0E>| dk<03>rt <0A>d| <09>}t<17>||dd| ddfg<01>n|<0E>|d<14>|<11>d<06>|<11><1A>}|<03>rC|dd<15>t|d<00>|dd<00>}t|<13>}|<01>t|<14><01>|<01>t|<0F><01>|<01><12>}|<01>|<0F>|<01>|<13>||}|<01>|<15>q<>dS)N<> bitmap_format<61>bmp<6D>sizes))<02>r)<02>r)<02> r)<02>0r)<02>@r )<02><>r!)<02>r"<00> append_imagesrrr")<01> reducing_gapr)rr<00>s<00>dibr<00>1<>raw<61>rr)r'r<00><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>png<6E><00><00> )<1C>write<74>_MAGIC<49> encoderinfo<66>get<65>size<7A>sorted<65>set<65>appendr<00>SAVE<56>mode<64>copy<70> thumbnailr <00>
Resampling<EFBFBD>LANCZOS<4F>o16<31>len<65>tellrr<00>save<76>newr
<00>_save<76>seek<65>read<61>o32)rrrrr<00>frames<65> provided_ims<6D>width<74>heightr3<00> provided_im<69>bits<74> bits_used<65>other_im<69>frame<6D>offset<65>colors<72>image_io<69>and_mask<73> image_bytes<65> bytes_len<65>current<6E>rV<00>T/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/PIL/IcoImagePlugin.pyrB+s<>
<04>
0




<02>
<02>
 

 
 <04><02> 
$

 <04>rB<00>prefix<69>bytes<65>boolcCs|dd<01>tkS)N<>)r0)rXrVrVrW<00>_acceptvsr\c@s:eZdZdd<02>Zdd<04>Zddd<07>Zddd <09>Zddd<0F>ZdS)<13>IcoFilec Cs8|<01>d<01>}t|<02>sd}t|<03><01>||_g|_t|d<03>|_t|j<06>D]d}|<01>d<04>}|d|d|d|dt|d<03>t|d<01>t|d <09>t|d
<EFBFBD>d <0B>}d D]
}||sRd ||<qH|dpg|ddkoet t
|dd<07><02>pgd |d<|d|df|d<|d|d|d<|j<04> |<05>q t |jdd<16>d<17>|_t |jdd<16>dd<1A>|_dS)zL
Parse image from file-like object containing ico file data
<20>znot an ICO filer[rrrr-<00>r,r.)rHrI<00>nb_color<6F>reserved<65>planes<65>bppr3rO<00>rHrIr"rcr`<00> color_depthrHrI<00>dim<69>squarecS<01>|dS)NrerV<00><01>xrVrVrW<00><lambda><3E><00>z"IcoFile.__init__.<locals>.<lambda>)<01>keycSrh)NrgrVrirVrVrWrk<00>rlT)rm<00>reverseN) rDr\<00> SyntaxError<6F>buf<75>entry<72>i16<31>nb_items<6D>range<67>i32rrr6r4)<07>selfrp<00>s<>msg<73>i<> icon_header<65>jrVrVrW<00>__init__{sB
 
<06> <02> <02><06> zIcoFile.__init__cCsdd<02>|jD<00>S)zJ
Get a list of all available icon sizes and color depths.
cSsh|]
}|d|df<02>qSrdrV)<02>.0<EFBFBD>hrVrVrW<00> <setcomp><3E>sz IcoFile.sizes.<locals>.<setcomp>)rq<00>rvrVrVrWr<00>sz IcoFile.sizesFcCs@t|j<01>D]\}}||dkr|dus||dkr|SqdS)NrfFrer)<02> enumeraterq)rvr3rcryr~rVrVrW<00> getentryindex<65>s
 <02>zIcoFile.getentryindexcCs|<00>|<00>||<02><02>S)z,
Get an image from the icon
)rNr<>)rvr3rcrVrVrW<00>getimage<67>szIcoFile.getimage<67>idx<64>intrrc
Cs<>|j|}|j<01>|d<00>|j<01>d<02>}|j<01>|d<00>|dd<02>tjkr2t<04>|j<01>}t<07>|j <09>|St
<EFBFBD> |j<01>}t<07>|j <09>|j dt |j dd<00>f|_ |jd\}}}}|d|j ||f|jd<|d} d | kr<>|j<01>|<07>|j<01>|j d|j dd
<00>d dd
<EFBFBD>}
t<07>d |j |
d d<0E>} nH|j d} | d dkr<>| d |j dd 7} t | |j dd<00>} |d|d| }|j<01>|<0E>|j<01>| <0A>}t<07>d|j |d dt | d<00>df<03>} |<04>d<13>}|<04>| <0B>|S)z-
Get an image from frame idx
rOr,Nrrr-r)rcrr[r_<00>Lr()r<>rr*r3r'z1;Ir*<00>RGBA)rqrprCrDr r0<00> PngImageFiler <00>_decompression_bomb_checkr3r<00> DibImageFiler<65><00>_size<7A>tile<6C>
frombuffer<EFBFBD>convert<72>putalpha)rvr<><00>header<65>datar<00>d<>e<>o<>arc<00> alpha_bytes<65>mask<73>w<> total_bytes<65>and_mask_offset<65> mask_datarVrVrWrN<00>sR
   ? <0C>  *<06>
  <04>
z IcoFile.frameN)F)r<>r<>rr)<08>__name__<5F>
__module__<EFBFBD> __qualname__r|rr<>r<>rNrVrVrVrWr]zs 9

r]c@sNeZdZdZdZdZddd<07>Zedd <09><00>Zej d
d <09><00>Zd d <0C>Z
ddd<10>Z dS)<14> IcoImageFilea<65>
PIL read-only image support for Microsoft Windows .ico files.
By default the largest resolution image in the file will be loaded. This
can be changed by altering the 'size' attribute before calling 'load'.
The info dictionary has a key 'sizes' that is a list of the sizes available
in the icon file.
Handles classic, XP and Vista icon formats.
When saving, PNG compression is used. Support for this was only added in
Windows Vista. If you are unable to view the icon in Windows, convert the
image to "RGBA" mode before saving.
This plugin is a refactored version of Win32IconImagePlugin by Bryan Davis
<casadebender@gmail.com>.
https://code.google.com/archive/p/casadebender/wikis/Win32IconImagePlugin.wiki
<20>ICOz Windows IconrrcCs:t|j<01>|_|j<02><03>|jd<|jjdd|_|<00><07>dS)Nrrrf)r]r<00>icor<00>inforqr3<00>loadr<64>rVrVrW<00>_open3s  zIcoImageFile._opencCs|jS<00>N)r<>r<>rVrVrWr39szIcoImageFile.sizecCs$||jdvr d}t|<02><01>||_dS)Nrz2This is not one of the allowed sizes of this image)r<><00>
ValueErrorr<EFBFBD>)rv<00>valuerxrVrVrWr3=s
cCs<>|jdur|jj|jkrtj<02>|<00>S|j<04>|j<01>}|<01><03>|j|_d|_|j|_|j r/|j |_ |j|jkrZt
<EFBFBD> d<01>|j<04> |j<01>}t |jd<00>}|j||<t|<03>|jd<|j|_dSdS)NzImage was not the expected sizer)rr3r r<>r<>r<><00>pyaccessr8<00>_mode<64>palette<74>warnings<67>warnr<6E><00>listr<74>r5)rvr<00>indexrrVrVrWr<>Ds"  

 <04>zIcoImageFile.load<61>posr<73>cCsdSr<>rV)rvr<>rVrVrW<00> load_seekZszIcoImageFile.load_seekN)rr)r<>r<>rr) r<>r<>r<><00>__doc__<5F>format<61>format_descriptionr<6E><00>propertyr3<00>setterr<72>r<>rVrVrVrWr<>s


r<>z.icoz image/x-icon)rrrrrrrr)rXrYrrZ)#<23>
__future__rr<><00>ior<00>mathrr<00>typingr<00>rr r
r <00>_binaryr rrr rurrr=rrEr0rBr\r]r<><00> register_openr<6E><00> register_save<76>register_extension<6F> register_mimerVrVrVrW<00><module>s*        

K"I