HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/extractimage.pyo
�
��Yc@sidZddlZddlZddlZdejfd��YZedkree�Zej�ndS(s�
Copyright (C) 2005 Aaron Spike, aaron@ekips.org

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
i����NtMyEffectcBseZd�Zd�ZRS(cCsRtjj|�|jjd�|jjdddddddd	dd
d�dS(Ns--descs
--filepathtactiontstorettypetstringtdesttfilepathtdefaultthelpt(tinkextEffectt__init__tOptionParsert
add_optiontNone(tself((s./usr/share/inkscape/extensions/extractimage.pyRscCs4idd6dd6dd6dd6dd	6d
d6}|jj}|dkr0|jjr0x�|jj�D]�\}}|jtjd
d�krd|jtjdd��}|d dkr&|j	d�}|dkrd}|j	d�}|dkr�x�|j
�D]�}	|	|d|!j�kr�||	}||}tj
j|�s�tjdkrrtj
jtjd|�}q�tj
jtj
jd�|�}ntjtd�|�Pq�q�Wntj||�}
t|d�j|
�|jtjdd�tj
j|��ntjtd��Pq&qdqdWq0ndS(Ns.pngtpngs.bmptbmps.jpgtjpegtjpgs.icoticons.giftgifR	timagetsvgthreftxlinkitdatat,it;itnttUSERPROFILEt~sImage extracted to: %stwbsUnable to find image data.(toptionsRtidstselectedt	iteritemsttagR
taddNStgettfindtkeystlowertostpathtisabstnametjointenviront
expanduserterrormsgt_tbase64tdecodestringtopentwritetsettrealpath(Rt
mimesubextR-tidtnodeRtcommatfileextt	semicolontsubR((s./usr/share/inkscape/extensions/extractimage.pyteffect!sD


$+(t__name__t
__module__RRB(((s./usr/share/inkscape/extensions/extractimage.pyRs	t__main__(	t__doc__R5R,R
RRRCtetaffect(((s./usr/share/inkscape/extensions/extractimage.pyt<module>s3