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

109 lines
9.6 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>f<EFBFBD>.<00> @sddlmZddlZddlZddlZddlZddlmZddlm Z m
Z
m Z m Z e <0C> d<06>Zer5ddlmZdZd Zd
d <0B>Zd d <0A>Zdd<0F>Zdd<11>Zdd<13>ZGdd<15>d<15>ZGdd<17>de
j
<EFBFBD>Zd3d d!<21>Zd4d%d&<26>Ze <09>ejee<1A>e <09>ejd'<27>e <09>eje<19>e <09>ejd(<28>e d)k<02>re!ej"<22>d*kr<>e#d+<2B>e<05>$<24>e%ej"dd,<2C><02>[Z&ee&<26>Z'e'j(d-D]Z)e)\Z*Z+Z,e'_)e'<27>-d.e*<2A>d/e+<2B>d/e,<2C>d0<64><07>q<>e <09>%ej"d<00><01> Z.e.<2E>-d1<64>Wd<00>n1s<>wYej/d2kr<>e<03>0d1<64>Wd<00>dSWd<00>dS1s<>wYdSdS)5<>)<01> annotationsN)<01>IO<49>)<04>Image<67> ImageFile<6C>PngImagePlugin<69>features<65>jpg_2000)<01>Jpeg2KImagePluginsicns<6E>cCst<00>d|<00>t<03><01>S)Nz>4sI)<04>struct<63>unpack<63>read<61>
HEADERSIZE)<01>fobj<62>r<00>U/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/PIL/IcnsImagePlugin.py<70>
nextheader%srcCsH|\}}|<00>|<03>|<00>d<01>}|dkrd}t|<06><01>t||d|df|<02>S)N<>sz'Unknown signature, expecting 0x00000000)<04>seekr<00> SyntaxError<6F>read_32)r<00> start_length<74>size<7A>start<72>length<74>sig<69>msgrrr<00>read_32t)s

rc
Cst|\}}|<00>|<03>|d|d|d|df}|d|d}||dkr;|<00>|<04>}t<02>d||dddd<03>}d|iSt<02>d|d<07>}td<04>D]o} g}
|} | dkr<>|<00>d<03>} | sXn7| d} | d@rv| d } |<00>d<03>} t| <0A>D]}|
<EFBFBD>| <0C>qmn | d} |
<EFBFBD>|<00>| <0A><01>| | 8} | dkr<>n| dksP| dkr<>d
t| <0B><01>d <0B>}t|<0F><01>t<02>d |d <0A> |
<EFBFBD>dd dd<03>}|j
<EFBFBD> |j
| <09>qFd|iS)zn
Read a 32bit RGB icon resource. Seems to be either uncompressed or
an RLE packbits-like scheme.
r<00>r<00><00>RGB<47>rawN<77><4E><00>}zError reading channel [z left]<5D>L<>) rrr<00>
frombuffer<EFBFBD>new<65>range<67>append<6E>reprr<00>join<69>im<69>putband)rrrrr<00>
pixel_size<EFBFBD>sizesq<73>indatar-<00>band_ix<69>data<74> bytesleft<66>byte<74> blocksize<7A>ir<00>bandrrrr4sF
  
<0E> 

  <02><08>rc Csf|d}|<00>|<03>|d|d|d|df}|d|d}t<01>d||<00>|<05>dddd<03>}d|iS)Nrrrr%r"<00>A)rrr'r)rrrrr/r0r8rrr<00>read_mk_s 
 r:c
Cs<>|\}}|<00>|<03>|<00>d<01>}|dd<02>dkr*|<00>|<03>t<02>|<00>}t<04>|j<06>d|iS|dd<05>dks>|dd<05>dks>|dkrntsFd }t|<07><01>|<00>|<03>|<00>|<04>}t <09>
|<08>} t <0B> | <09>}t<04>|j<06>|j dkrj|<06>d<04>}d|iSd
}t|<07><01>) N<> r s<00>PNG

<EFBFBD>RGBArs<00>O<EFBFBD>Qs
<EFBFBD>
s jP
<EFBFBD>
zQUnsupported icon subimage format (rebuild PIL with JPEG 2000 support to fix this)z Unsupported icon subimage format)rrr<00> PngImageFiler<00>_decompression_bomb_checkr<00> enable_jpeg2k<32>
ValueError<EFBFBD>io<69>BytesIOr
<00>Jpeg2KImageFile<6C>mode<64>convert)
rrrrrrr-r<00>
jp2kstream<EFBFBD>frrr<00>read_png_or_jpeg2000is2



 <02>



 

rHc@s<>eZdZdefgdefgdefgdefgdefgdefdefdefgd efgd
efgd efd efgd efdefdefgdefgdefdefdefgd<14> Zdd<16>Zdd<18>Z dd<1A>Z
dd<1C>Z d dd<1F>Z dS)!<21>IcnsFile<6C>ic10<31>ic09<30>ic14<31>ic08<30>ic13<31>ic07sit32st8mksicp6<70>ic12sih32sh8mksicp5sil32sl8mk<6D>ic11sicp4sis32ss8mk) )<03>rRr)rRrRr)<03>rSr)rSrSr)r#r#r)r#r#r)<03>@rTr)<03> rUr)<03>0rVr)rUrUr)<03>rWr)rWrWrcCs<>i|_}||_t|<01>\}}t|<03>sd}t|<05><01>t}||krMt|<01>\}}|dkr.d}t|<05><01>|t7}|t8}||f||<|<01>|tj<08>||7}||ksdSdS)z@
fobj is a file-like object as an icns resource
znot an icns filerzinvalid block headerN) <09>dctrr<00>_acceptrrrrA<00>SEEK_CUR)<08>selfrrXr<00>filesizerr7r6rrr<00>__init__<5F>s$
   <10>zIcnsFile.__init__cCsBg}|j<00><01>D]\}}|D]\}}||jvr|<01>|<02>nq q|S<00>N)<04>SIZES<45>itemsrXr*)r[<00>sizesr<00>fmts<74>fmt<6D>readerrrr<00> itersizes<65>s 

<02><02>zIcnsFile.itersizescCs |<00><00>}|s d}t|<02><01>t|<01>S)NzNo 32bit icon resources found)rer<00>max)r[rarrrr<00>bestsize<7A>s
zIcnsFile.bestsizecCsDi}|j|D]\}}|j<01>|<03>}|dur|<02>||j||<01><03>q|S)z<>
Get an icon resource as {channel: array}. Note that
the arrays are bottom-up like windows bitmaps and will likely
need to be flipped or transposed in some way.
N)r_rX<00>get<65>updater)r[rrX<00>coderd<00>descrrr<00> dataforsize<7A>s <02>zIcnsFile.dataforsizeNcCs<>|dur|<00><00>}t|<01>dkr|d|ddf}|<00>|<01>}|<02>dd<00>}|r&|S|<02>d<05><01><04>}z
|<03>|d<00>W|StyAY|Sw)Nrrrr<r!r9)rg<00>lenrlrh<00>copy<70>putalpha<68>KeyError)r[r<00>channelsr-rrr<00>getimage<67>s  
  <0C><02>zIcnsFile.getimager^) <0A>__name__<5F>
__module__<EFBFBD> __qualname__rHrr:rr_r]rergrlrrrrrrrI<00>s8<02><02><02><06>  rIc@sDeZdZdZdZdZddd<07>Zedd <09><00>Zej d
d <09><00>Zd d <0C>Z
d S)<0F> IcnsImageFilea!
PIL image support for Mac OS .icns files.
Chooses the best resolution, but will possibly load
a different size image if you mutate the size attribute
before calling 'load'.
The info dictionary has a key 'sizes' that is a list
of sizes that the icns file has.
<20>ICNSzMac OS icns resource<63>return<72>NonecCs\t|j<01>|_d|_|j<02><04>|jd<|j<02><06>|_|jd|jd|jd|jdf|_dS)Nr<rarrr) rI<00>fp<66>icns<6E>_modere<00>inforg<00> best_sizer<00>r[rrr<00>_opens  
<EFBFBD>zIcnsImageFile._opencCs|jSr^)<01>_sizerrrrr
szIcnsImageFile.sizecCs<>|}||jdvrt|<02>dkr|d|ddf}||jdvrCt|<02>dkrC|ddkrCdd<07>|jdD<00>}||vrC|jd|<03>|<01>}||jdvrPd}t|<04><01>||_dS) Nrarrrr cSs,g|]}|d|d|d|df<02>qS)rrrr)<02>.0rrrr<00>
<listcomp>s <06>z&IcnsImageFile.size.<locals>.<listcomp>z2This is not one of the allowed sizes of this image)r}rm<00>indexr@r<>)r[<00>value<75> info_size<7A> simple_sizesrrrrrs  <06>
cCs<>t|j<01>dkr |j|_|jd|jd|jd|jdf|_tj<03>|<00>}|jdur4|jj|jkr4|S|<00><06>|j<07>|j<02>}|<02><04>}|j|_|j |_
|j|_|S)Nr rrr) rmrr~r<00>loadr-<00> load_preparer{rrrDr|)r[<00>pxr-rrrr<>"s<06> zIcnsImageFile.loadN)rxry) rsrtru<00>__doc__<5F>format<61>format_descriptionr<6E><00>propertyr<00>setterr<72>rrrrrv<00>s



 rvr-<00> Image.Imagerz<00> IO[bytes]<5D>filename<6D> str | bytesrxryc Cs<>t|d<01>r |<01><01>ddddddddd<08>}d d
<EFBFBD>|j<02>d g<00>D<00>}i}t|<03><05><00>D]!}||vr2||n|<00>||f<02>}t<07><08>}|<07> |d <0C>|<08>
<EFBFBD>||<q(g} |<03> <0B>D]\}
}||} | <09> |
t t| <0B>| f<03>qP|<01>t<10>t } | t d t| <09>7} | tdd<0F>| D<00><01>7} |<01>t<12>d| <0C><02>|<01>d<11>|<01>t<12>dt t| <09>t <00><02>| D]} |<01>| d<00>|<01>t<12>d| d<00><02>q<>| D]} |<01>| d<00>|<01>t<12>d| d<00><02>|<01>| d<00>q<>t|d<01>r<>|<01><01>dSdS)za
Saves the image as a series of PNG files,
that are then combined into a .icns file.
<20>flushr#rSrRirUrT)rOrMrKrJrQrPrNrLcSsi|]}|j|<01>qSr)<01>width)r<>r-rrr<00>
<dictcomp>Nsz_save.<locals>.<dictcomp><3E> append_images<65>pngr css<00>|]}|dVqdS)rNr)r<><00>entryrrr<00> <genexpr>ds<02>z_save.<locals>.<genexpr>z>isTOC rrrN)<14>hasattrr<72><00> encoderinforh<00>set<65>values<65>resizerArB<00>save<76>getvaluer`r*rrm<00>write<74>MAGIC<49>sumr <00>pack)r-rzr<>ra<00>provided_images<65> size_streamsr<00>image<67>temp<6D>entries<65>type<70>stream<61> file_lengthr<68>rrr<00>_save<sT
<06>
<08> <02> 


 <04>r<EFBFBD><00>prefix<69>bytes<65>boolcCs|dd<01>tkS)Nr)r<>)r<>rrrrYxsrYz.icnsz
image/icns<6E>__main__rz)Syntax: python3 IcnsImagePlugin.py [file]<5D>rbrazout-<2D>-z.pngzout.png<6E>windows)r-r<>rzr<>r<>r<>rxry)r<>r<>rxr<>)1<>
__future__rrA<00>osr <00>sys<79>typingr<00>rrrr<00> check_codecr?r
r<>rrrrr:rHrIrvr<>rY<00> register_openr<6E><00>register_extension<6F> register_save<76> register_mimersrm<00>argv<67>print<6E>exit<69>openrz<00>imfr}rr<><00>height<68>scaler<65>r-<00>platform<72> startfilerrrr<00><module>sV  
  +
"g
J
<
  <1C>
 <0E>"<22><04>