Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
python3.5 /
dist-packages /
wand /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-sr-x
2025-04-10 17:07
cdefs
[ DIR ]
drwxr-sr-x
2025-04-10 17:07
__init__.py
202
B
-rw-r--r--
2025-04-10 17:07
api.py
9.97
KB
-rw-r--r--
2025-04-10 17:07
assertions.py
4.61
KB
-rw-r--r--
2025-04-10 17:07
color.py
23.93
KB
-rw-r--r--
2025-04-10 17:07
compat.py
4.46
KB
-rw-r--r--
2025-04-10 17:07
display.py
2.39
KB
-rw-r--r--
2025-04-10 17:07
drawing.py
78.23
KB
-rw-r--r--
2025-04-10 17:07
exceptions.py
10.9
KB
-rw-r--r--
2025-04-10 17:07
font.py
3.93
KB
-rw-r--r--
2025-04-10 17:07
image.py
421.3
KB
-rw-r--r--
2025-04-10 17:07
resource.py
11.53
KB
-rw-r--r--
2025-04-10 17:07
sequence.py
12.87
KB
-rw-r--r--
2025-04-10 17:07
version.py
10.44
KB
-rw-r--r--
2025-04-10 17:07
Save
Rename
""":mod:`wand.display` --- Displaying images ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The :func:`display()` functions shows you the image. It is useful for debugging. If you are in Mac, the image will be opened by your default image application (:program:`Preview.app` usually). If you are in Windows, the image will be opened by :program:`imdisplay.exe`, or your default image application (:program:`Windows Photo Viewer` usually) if :program:`imdisplay.exe` is unavailable. You can use it from CLI also. Execute :mod:`wand.display` module through :option:`python -m <-m>` option: .. sourcecode:: console $ python -m wand.display wandtests/assets/mona-lisa.jpg .. versionadded:: 0.1.9 """ from __future__ import print_function import ctypes import os import platform import sys import tempfile from .api import library from .exceptions import BlobError, DelegateError from .image import Image __all__ = 'display', def display(image, server_name=':0'): """Displays the passed ``image``. :param image: an image to display :type image: :class:`~wand.image.Image` :param server_name: X11 server name to use. it is ignored and not used for Mac. default is ``':0'`` :type server_name: :class:`str` """ if not isinstance(image, Image): raise TypeError('image must be a wand.image.Image instance, not ' + repr(image)) system = platform.system() if system == 'Windows': try: image.save(filename='win:.') except DelegateError: pass else: return if system in ('Windows', 'Darwin'): ext = '.' + image.format.lower() if ext in ('miff', 'xc'): ext = 'png' path = tempfile.mktemp(suffix=ext) image.save(filename=path) os.system(('start ' if system == 'Windows' else 'open ') + path) else: library.MagickDisplayImage.argtypes = [ctypes.c_void_p, ctypes.c_char_p] library.MagickDisplayImage(image.wand, str(server_name).encode()) if __name__ == '__main__': if len(sys.argv) < 2: print('usage: python -m wand.display FILE', file=sys.stderr) raise SystemExit path = sys.argv[1] try: with Image(filename=path) as image: display(image) except BlobError: print('cannot read the file', path, file=sys.stderr)