⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
PIL
/
__pycache__
/
View File Name :
ImageShow.cpython-310.pyc
o _#a @ s$ d dl Z d dlZd dlZd dlZd dlmZ d dlmZ g Zd)ddZ d*ddZ G d d d ZG dd deZej d kr@e e G dd deZej dkrQe e G dd deZG dd deZG dd deZG dd deZG dd deZG dd deZej dvredre e edre e ed re e ed!re e ed"re e G d#d$ d$eZzd d%lmZ W n ey Y nw e e ed&kreejd'k red( e e ejd Z!ee e!gejd'd R W d dS 1 s w Y dS dS )+ Nquote)Image c C sN z t | tr | } W n ty Y nw |dkrt| dS td| dS )a The :py:func:`register` function is used to register additional viewers. :param viewer: The viewer to be registered. :param order: Zero or a negative integer to prepend this viewer to the list, a positive integer to append it. r N) issubclassViewer TypeError_viewersappendinsert)viewerorder r //usr/lib/python3/dist-packages/PIL/ImageShow.pyregister s r c K s* t D ]}|j| fd|i|r dS qdS )a Display a given image. :param image: An image object. :param title: Optional title. Not all viewers can display the title. :param \**options: Additional viewer options. :returns: ``True`` if a suitable viewer was found, ``False`` otherwise. titler r )r show)imager optionsr r r r r - s r c @ sT e Zd ZdZdd ZdZ i Z dd Zdd Zd d Z dd Z d d Zdd ZdS )r zBase class for viewers.c K sP |j dv s| jdkr|j dv st|j }|j |kr||}| j|fi |S )z The main function for displaying an image. Converts the given image to the target format and displays it. )1RGBAPNG)zI;16LA)modeformatr getmodebaseconvert show_image)selfr r baser r r r A s zViewer.showNc C s | j S )z3Return format name, or ``None`` to save as PGM/PPM.)r r r r r r get_formatX s zViewer.get_formatc K s t )zj Returns the command used to display the file. Not implemented in the base class. )NotImplementedErrorr filer r r r get_command\ s zViewer.get_commandc C s |j dd| |i| jS )z+Save to temporary file and return filename.r Nr )_dumpr! r r r r r save_imagec s zViewer.save_imagec K s | j | |fi |S )zDisplay the given image.) show_filer' r r r r r r r g s zViewer.show_imagec K s t | j|fi | dS )Display given filer )ossystemr% r# r r r r( k s zViewer.show_filec C s t tjdd|g d S )Nz-cz