403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.156
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/inkscape/extensions/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/inkscape/extensions/__pycache__/raster_output_png.cpython-310.pyc
o

0�a,�@sZdZddlZddlZddlmZddlmZGdd�deej�Ze	dkr+e��
�dSdS)z!
Optimise PNG file using optipng
�N)�TempDirMixin)�callc@s$eZdZdd�Zdd�Zdd�ZdS)�	PngOutputcCsf|�d�|jdtjdd�|jdtdd�|jdtjdd�|jd	tjdd�|jd
tjdd�dS)Nz--tabz--interlaceT)�type�defaultz--level�z
--bitdepthFz--colorz	--palette)�add_argument�inkex�Boolean�int)�self�pars�r�3/usr/share/inkscape/extensions/raster_output_png.py�
add_argumentss
zPngOutput.add_argumentscCsRtj�|jd�|_t|jd��}|�|���Wd�dS1s"wYdS)z*Load the PNG file (prepare it for optipng)z	input.png�wbN)�os�path�join�tempdir�png_file�open�write�read)r�stream�fhlrrr�loads"�zPngOutput.loadcCs�|jjt|jj�|jj|jj|jjd�}td|jfddd�|��t	j
�|j�rKt|jd��}|�
|���Wd�dS1sDwYdSdS)z-Pass the PNG file to optipng with the options)�o�i�nb�nc�np�optipngT)�oldie�clobber�rbN)�options�levelr�	interlace�bitdepth�color�paletterrrr�isfilerrr)rrr&rrrr�saves&
����"��zPngOutput.saveN)�__name__�
__module__�__qualname__rrr-rrrrrs
r�__main__)�__doc__rr	�inkex.extensionsr�
inkex.commandr�RasterOutputExtensionrr.�runrrrr�<module>s%�

Youez - 2016 - github.com/yon3zu
LinuXploit