Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 iaF*ã@sÚddlZddlZddlmZddlmZmZddlmZm Z m Z m Z ddl m Zddl mZddl mZd Zd d „Zd d „ZGdd„dƒZGdd„de j ƒZe jejeeƒe jejeƒe jejdƒe jejdƒdS)éN)ÚBytesIO)ÚceilÚlogé)ÚBmpImagePluginÚImageÚ ImageFileÚPngImagePlugin)Úi16le)Úi32le)Úo32lesc s`|jtƒ|jjddd d!d"d#d$d%gƒ}|j\‰‰t‡‡fd d „|ƒ}t|ƒ}|jtjd t |ƒƒƒ|j ƒt |ƒd}|jjd ƒd k}dd„|jjdgƒDƒ}�xº|D�]°}|\‰‰|jtjdˆdkrʈndƒƒ|jtjdˆdk�rêˆndƒƒ|jdƒ|jdƒ|jdƒ|j|ƒ}|�s:|j ƒ}|j |t jdd�|�rPtj|jdnd} |jtjd | ƒƒtƒ} |�r¶|j| dƒ| dk�rÂt jd|jƒ} tj| | dd&|jdd(fgƒn |j| dƒ| jdƒ| jƒ} |�rþ| dd…tˆdƒ| dd…} t | ƒ} |jtjd| ƒƒ|jtjd|ƒƒ|j ƒ}|j|ƒ|j| ƒ|| }|j|ƒq¦WdS))NÚsizesééé é0é@é€écs8|dˆks0|dˆks0|ddks0|ddkr4dSdS)NrrrFT©)Úx)ÚheightÚwidthrú3/tmp/tmp5hum_rxs/lib64/python/PIL/IcoImagePlugin.pyÚ1s4z_save..z:sz_save..Z append_imagesÚBrós)Z reducing_gaprZdibÚ1ÚrawZpngééé zWt |jdd„d�|_t |jdd„d�|_|jj ƒdS)zL Parse image from file-like object containing ico file data éznot an ICO filer?rrrr%ér$r&)rrÚnb_colorÚreservedZplanesÚbpprr;rrrrGrEÚ color_depthÚdimÚsquarecSs|dS)NrHr)rrrrržsz"IcoFile.__init__..)ÚkeycSs|dS)NrJr)rrrrr¡sN)rr)r7rAÚ SyntaxErrorÚbufÚentryÚi16Znb_itemsÚrangeÚi32rrÚappendÚsortedÚreverse)ÚselfrMÚsÚiZ icon_headerÚjrrrÚ__init__js:      zIcoFile.__init__cCsdd„|jDƒS)zJ Get a list of all available icon sizes and color depths. cSsh|]}|d|df’qS)rrr)rÚhrrrú ¨sz IcoFile.sizes..)rN)rUrrrr ¤sz IcoFile.sizesFcCs@x:t|jƒD],\}}||dkr |dks4||dkr |Sq WdS)NrIFrHr)Ú enumeraterN)rUrrGrWrZrrrÚ getentryindexªs zIcoFile.getentryindexcCs|j|j||ƒƒS)z, Get an image from the icon )Úframer])rUrrGrrrÚgetimage°szIcoFile.getimagec CsÌ|j|}|jj|dƒ|jjdƒ}|jj|dƒ|dd…tjkrdtj|jƒ}tj|j ƒ�ndt j |jƒ}tj|j ƒ|j dt |j ddƒf|_ |jd\}}}}|d|j ||f|jd<|d} d| k�r"|jj|ƒ|jj|j d|j dd ƒd dd …} tjd |j | d dƒ} n’|j d} | ddk�rP| d|j dd7} t | |j ddƒ} |d|d | }|jj|ƒ|jj| ƒ}tjd|j |d dt | dƒdfƒ} |jdƒ}|j| ƒ|S)z- Get an image from frame idx r;r$Nrrr%rGrr?rDÚLr#rr"z1;IZRGBA)rrr')r`rr'r')rNrMr6r7r r)Z PngImageFilerZ_decompression_bomb_checkrrZ DibImageFileÚintÚ_sizeZtileZ frombufferÚconvertZputalpha)rUÚidxÚheaderÚdatarÚdÚeÚoÚarGZ alpha_bytesÚmaskÚwZ total_bytesZand_mask_offsetZ mask_datarrrr^¶sL       *     z IcoFile.frameN)F)F)Ú__name__Ú __module__Ú __qualname__rYr r]r_r^rrrrrBis :  rBc@sJeZdZdZdZdZdd„Zedd„ƒZej dd„ƒZd d „Z d d „Z d S)Ú IcoImageFileaý 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 . https://code.google.com/archive/p/casadebender/wikis/Win32IconImagePlugin.wiki ZICOz Windows IconcCs:t|jƒ|_|jjƒ|jd<|jjdd|_|jƒdS)Nr rrI)rBr9Úicor ÚinforNrÚload)rUrrrÚ_open"s zIcoImageFile._opencCs|jS)N)rb)rUrrrr(szIcoImageFile.sizecCs ||jdkrtdƒ‚||_dS)Nr z2This is not one of the allowed sizes of this image)rrÚ ValueErrorrb)rUÚvaluerrrr,scCs”|jr|jj|jkrdS|jj|jƒ}|jƒ|j|_|j|_|j|jkr�tjdƒ|jj|jƒ}t |j dƒ}|j||<t |ƒ|j d<|j|_dS)NzImage was not the expected sizer ) rrrqr_rsr2ÚwarningsÚwarnr]r,rrÚset)rUrÚindexr rrrrs2s   zIcoImageFile.loadcCsdS)Nr)rUrrrÚ load_seekEszIcoImageFile.load_seekN) rmrnroÚ__doc__ÚformatZformat_descriptionrtÚpropertyrÚsetterrsr{rrrrrp s rpz.icoz image/x-icon)r-rwÚiorÚmathrrÚrrrr Z_binaryr rOr rQr r8r)r5rArBrpZ register_openr}Z register_saveZregister_extensionZ register_mimerrrrÚs"    <"E