Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python3.6 /
site-packages /
PIL /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-07-04 11:33
BdfFontFile.py
3.29
KB
-rw-r--r--
2018-04-12 21:15
BlpImagePlugin.py
14.26
KB
-rw-r--r--
2024-07-03 09:03
BmpImagePlugin.py
12.83
KB
-rw-r--r--
2018-04-12 21:15
BufrStubImagePlugin.py
1.48
KB
-rw-r--r--
2018-04-12 21:15
ContainerIO.py
2.63
KB
-rw-r--r--
2018-04-12 21:15
CurImagePlugin.py
2.02
KB
-rw-r--r--
2018-04-12 21:15
DcxImagePlugin.py
1.98
KB
-rw-r--r--
2018-04-12 21:15
DdsImagePlugin.py
4.88
KB
-rw-r--r--
2018-04-12 21:15
EpsImagePlugin.py
12.59
KB
-rw-r--r--
2024-07-03 09:03
ExifTags.py
8.63
KB
-rw-r--r--
2018-04-12 21:15
FitsStubImagePlugin.py
1.58
KB
-rw-r--r--
2018-04-12 21:15
FliImagePlugin.py
4
KB
-rw-r--r--
2018-04-12 21:15
FontFile.py
2.77
KB
-rw-r--r--
2018-04-12 21:15
FpxImagePlugin.py
6.23
KB
-rw-r--r--
2018-04-12 21:15
FtexImagePlugin.py
3.19
KB
-rw-r--r--
2018-04-12 21:15
GbrImagePlugin.py
2.66
KB
-rw-r--r--
2018-04-12 21:15
GdImageFile.py
2.15
KB
-rw-r--r--
2018-04-12 21:15
GifImagePlugin.py
26.11
KB
-rw-r--r--
2024-07-03 09:03
GimpGradientFile.py
3.27
KB
-rw-r--r--
2018-04-12 21:15
GimpPaletteFile.py
1.31
KB
-rw-r--r--
2018-04-12 21:15
GribStubImagePlugin.py
1.5
KB
-rw-r--r--
2018-04-12 21:15
Hdf5StubImagePlugin.py
1.48
KB
-rw-r--r--
2018-04-12 21:15
IcnsImagePlugin.py
10.82
KB
-rw-r--r--
2024-07-03 09:03
IcoImagePlugin.py
9.22
KB
-rw-r--r--
2024-07-03 09:03
ImImagePlugin.py
9.92
KB
-rw-r--r--
2018-04-12 21:15
Image.py
93.16
KB
-rw-r--r--
2018-04-12 21:15
ImageChops.py
6.04
KB
-rw-r--r--
2018-04-12 21:15
ImageCms.py
35.76
KB
-rw-r--r--
2018-04-12 21:15
ImageColor.py
8.05
KB
-rw-r--r--
2018-04-12 21:15
ImageDraw.py
13.32
KB
-rw-r--r--
2018-04-12 21:15
ImageDraw2.py
3.15
KB
-rw-r--r--
2018-04-12 21:15
ImageEnhance.py
3.12
KB
-rw-r--r--
2018-04-12 21:15
ImageFile.py
20.27
KB
-rw-r--r--
2024-07-03 09:03
ImageFilter.py
7.23
KB
-rw-r--r--
2018-04-12 21:15
ImageFont.py
20.66
KB
-rw-r--r--
2024-07-03 09:03
ImageGrab.py
2.1
KB
-rw-r--r--
2018-04-12 21:15
ImageMath.py
7.83
KB
-rw-r--r--
2024-07-03 09:03
ImageMode.py
1.52
KB
-rw-r--r--
2018-04-12 21:15
ImageMorph.py
8.12
KB
-rw-r--r--
2018-04-12 21:15
ImageOps.py
15.73
KB
-rw-r--r--
2018-04-12 21:15
ImagePalette.py
6.17
KB
-rw-r--r--
2018-04-12 21:15
ImagePath.py
1.26
KB
-rw-r--r--
2018-04-12 21:15
ImageSequence.py
1.21
KB
-rw-r--r--
2018-04-12 21:15
ImageShow.py
5.14
KB
-rw-r--r--
2018-04-12 21:15
ImageStat.py
3.76
KB
-rw-r--r--
2018-04-12 21:15
ImageTransform.py
2.74
KB
-rw-r--r--
2018-04-12 21:15
ImageWin.py
7
KB
-rw-r--r--
2018-04-12 21:15
ImtImagePlugin.py
2.19
KB
-rw-r--r--
2018-04-12 21:15
IptcImagePlugin.py
6.64
KB
-rw-r--r--
2018-04-12 21:15
Jpeg2KImagePlugin.py
7.55
KB
-rw-r--r--
2018-04-12 21:15
JpegImagePlugin.py
26.98
KB
-rw-r--r--
2018-04-12 21:15
JpegPresets.py
12.11
KB
-rw-r--r--
2018-04-12 21:15
McIdasImagePlugin.py
1.73
KB
-rw-r--r--
2018-04-12 21:15
MicImagePlugin.py
2.4
KB
-rw-r--r--
2018-04-12 21:15
MpegImagePlugin.py
1.79
KB
-rw-r--r--
2018-04-12 21:15
MpoImagePlugin.py
2.91
KB
-rw-r--r--
2018-04-12 21:15
MspImagePlugin.py
5.39
KB
-rw-r--r--
2018-04-12 21:15
OleFileIO.py
152
B
-rw-r--r--
2018-04-12 21:15
PSDraw.py
6.69
KB
-rw-r--r--
2018-04-12 21:15
PaletteFile.py
1.08
KB
-rw-r--r--
2018-04-12 21:15
PalmImagePlugin.py
8.94
KB
-rw-r--r--
2018-04-12 21:15
PcdImagePlugin.py
1.48
KB
-rw-r--r--
2018-04-12 21:15
PcfFontFile.py
5.99
KB
-rw-r--r--
2018-04-12 21:15
PcxImagePlugin.py
5.29
KB
-rw-r--r--
2024-07-03 09:03
PdfImagePlugin.py
7.16
KB
-rw-r--r--
2018-04-12 21:15
PdfParser.py
32.64
KB
-rw-r--r--
2024-07-03 09:03
PixarImagePlugin.py
1.63
KB
-rw-r--r--
2018-04-12 21:15
PngImagePlugin.py
25.09
KB
-rw-r--r--
2018-04-12 21:15
PpmImagePlugin.py
4.11
KB
-rw-r--r--
2018-04-12 21:15
PsdImagePlugin.py
7.76
KB
-rw-r--r--
2024-07-03 09:03
PyAccess.py
8.61
KB
-rw-r--r--
2018-04-12 21:15
SgiImagePlugin.py
5.97
KB
-rw-r--r--
2018-04-12 21:15
SunImagePlugin.py
4.22
KB
-rw-r--r--
2018-04-12 21:15
TarIO.py
1.21
KB
-rw-r--r--
2018-04-12 21:15
TgaImagePlugin.py
4.88
KB
-rw-r--r--
2018-04-12 21:15
TiffImagePlugin.py
63.49
KB
-rw-r--r--
2024-07-03 09:03
TiffTags.py
14.1
KB
-rw-r--r--
2018-04-12 21:15
WalImageFile.py
5.43
KB
-rw-r--r--
2018-04-12 21:15
WebPImagePlugin.py
9.45
KB
-rw-r--r--
2018-04-12 21:15
WmfImagePlugin.py
4.15
KB
-rw-r--r--
2018-04-12 21:15
XVThumbImagePlugin.py
1.91
KB
-rw-r--r--
2018-04-12 21:15
XbmImagePlugin.py
2.45
KB
-rw-r--r--
2018-04-12 21:15
XpmImagePlugin.py
3.03
KB
-rw-r--r--
2018-04-12 21:15
__init__.py
1.66
KB
-rw-r--r--
2018-04-12 21:15
_binary.py
1.75
KB
-rw-r--r--
2018-04-12 21:15
_imaging.cpython-36m-x86_64-linux-gnu.so
391.95
KB
-rwxr-xr-x
2024-07-03 09:03
_imagingcms.cpython-36m-x86_64-linux-gnu.so
35.89
KB
-rwxr-xr-x
2024-07-03 09:03
_imagingft.cpython-36m-x86_64-linux-gnu.so
30.39
KB
-rwxr-xr-x
2024-07-03 09:03
_imagingmath.cpython-36m-x86_64-linux-gnu.so
20.16
KB
-rwxr-xr-x
2024-07-03 09:03
_imagingmorph.cpython-36m-x86_64-linux-gnu.so
11.84
KB
-rwxr-xr-x
2024-07-03 09:03
_tkinter_finder.py
702
B
-rw-r--r--
2018-04-12 21:15
_util.py
553
B
-rw-r--r--
2018-04-12 21:15
_webp.cpython-36m-x86_64-linux-gnu.so
25.16
KB
-rwxr-xr-x
2024-07-03 09:03
features.py
1.83
KB
-rw-r--r--
2018-04-12 21:15
version.py
50
B
-rw-r--r--
2018-04-12 21:15
Save
Rename
# # The Python Imaging Library. # $Id$ # # PDF (Acrobat) file handling # # History: # 1996-07-16 fl Created # 1997-01-18 fl Fixed header # 2004-02-21 fl Fixes for 1/L/CMYK images, etc. # 2004-02-24 fl Fixes for 1 and P images. # # Copyright (c) 1997-2004 by Secret Labs AB. All rights reserved. # Copyright (c) 1996-1997 by Fredrik Lundh. # # See the README file for information on usage and redistribution. # ## # Image plugin for PDF images (output only). ## from . import Image, ImageFile, ImageSequence, PdfParser import io __version__ = "0.5" # # -------------------------------------------------------------------- # object ids: # 1. catalogue # 2. pages # 3. image # 4. page # 5. page contents def _save_all(im, fp, filename): _save(im, fp, filename, save_all=True) ## # (Internal) Image save plugin for the PDF format. def _save(im, fp, filename, save_all=False): resolution = im.encoderinfo.get("resolution", 72.0) is_appending = im.encoderinfo.get("append", False) title = im.encoderinfo.get("title", None) author = im.encoderinfo.get("author", None) subject = im.encoderinfo.get("subject", None) keywords = im.encoderinfo.get("keywords", None) creator = im.encoderinfo.get("creator", None) producer = im.encoderinfo.get("producer", None) if is_appending: existing_pdf = PdfParser.PdfParser(f=fp, filename=filename, mode="r+b") else: existing_pdf = PdfParser.PdfParser(f=fp, filename=filename, mode="w+b") if title: existing_pdf.info.Title = title if author: existing_pdf.info.Author = author if subject: existing_pdf.info.Subject = subject if keywords: existing_pdf.info.Keywords = keywords if creator: existing_pdf.info.Creator = creator if producer: existing_pdf.info.Producer = producer # # make sure image data is available im.load() existing_pdf.start_writing() existing_pdf.write_header() existing_pdf.write_comment("created by PIL PDF driver " + __version__) # # pages ims = [im] if save_all: append_images = im.encoderinfo.get("append_images", []) for append_im in append_images: append_im.encoderinfo = im.encoderinfo.copy() ims.append(append_im) numberOfPages = 0 image_refs = [] page_refs = [] contents_refs = [] for im in ims: im_numberOfPages = 1 if save_all: try: im_numberOfPages = im.n_frames except AttributeError: # Image format does not have n_frames. It is a single frame image pass numberOfPages += im_numberOfPages for i in range(im_numberOfPages): image_refs.append(existing_pdf.next_object_id(0)) page_refs.append(existing_pdf.next_object_id(0)) contents_refs.append(existing_pdf.next_object_id(0)) existing_pdf.pages.append(page_refs[-1]) # # catalog and list of pages existing_pdf.write_catalog() pageNumber = 0 for imSequence in ims: for im in ImageSequence.Iterator(imSequence): # FIXME: Should replace ASCIIHexDecode with RunLengthDecode (packbits) # or LZWDecode (tiff/lzw compression). Note that PDF 1.2 also supports # Flatedecode (zip compression). bits = 8 params = None if im.mode == "1": filter = "ASCIIHexDecode" colorspace = PdfParser.PdfName("DeviceGray") procset = "ImageB" # grayscale bits = 1 elif im.mode == "L": filter = "DCTDecode" # params = "<< /Predictor 15 /Columns %d >>" % (width-2) colorspace = PdfParser.PdfName("DeviceGray") procset = "ImageB" # grayscale elif im.mode == "P": filter = "ASCIIHexDecode" palette = im.im.getpalette("RGB") colorspace = [PdfParser.PdfName("Indexed"), PdfParser.PdfName("DeviceRGB"), 255, PdfParser.PdfBinary(palette)] procset = "ImageI" # indexed color elif im.mode == "RGB": filter = "DCTDecode" colorspace = PdfParser.PdfName("DeviceRGB") procset = "ImageC" # color images elif im.mode == "CMYK": filter = "DCTDecode" colorspace = PdfParser.PdfName("DeviceCMYK") procset = "ImageC" # color images else: raise ValueError("cannot save mode %s" % im.mode) # # image op = io.BytesIO() if filter == "ASCIIHexDecode": if bits == 1: # FIXME: the hex encoder doesn't support packed 1-bit # images; do things the hard way... data = im.tobytes("raw", "1") im = Image.new("L", (len(data), 1), None) im.putdata(data) ImageFile._save(im, op, [("hex", (0, 0)+im.size, 0, im.mode)]) elif filter == "DCTDecode": Image.SAVE["JPEG"](im, op, filename) elif filter == "FlateDecode": ImageFile._save(im, op, [("zip", (0, 0)+im.size, 0, im.mode)]) elif filter == "RunLengthDecode": ImageFile._save(im, op, [("packbits", (0, 0)+im.size, 0, im.mode)]) else: raise ValueError("unsupported PDF filter (%s)" % filter) # # Get image characteristics width, height = im.size existing_pdf.write_obj(image_refs[pageNumber], stream=op.getvalue(), Type=PdfParser.PdfName("XObject"), Subtype=PdfParser.PdfName("Image"), Width=width, # * 72.0 / resolution, Height=height, # * 72.0 / resolution, Filter=PdfParser.PdfName(filter), BitsPerComponent=bits, DecodeParams=params, ColorSpace=colorspace) # # page existing_pdf.write_page(page_refs[pageNumber], Resources=PdfParser.PdfDict( ProcSet=[PdfParser.PdfName("PDF"), PdfParser.PdfName(procset)], XObject=PdfParser.PdfDict(image=image_refs[pageNumber])), MediaBox=[0, 0, int(width * 72.0 / resolution), int(height * 72.0 / resolution)], Contents=contents_refs[pageNumber] ) # # page contents page_contents = PdfParser.make_bytes( "q %d 0 0 %d 0 0 cm /image Do Q\n" % ( int(width * 72.0 / resolution), int(height * 72.0 / resolution))) existing_pdf.write_obj(contents_refs[pageNumber], stream=page_contents) pageNumber += 1 # # trailer existing_pdf.write_xref_and_trailer() if hasattr(fp, "flush"): fp.flush() existing_pdf.close() # # -------------------------------------------------------------------- Image.register_save("PDF", _save) Image.register_save_all("PDF", _save_all) Image.register_extension("PDF", ".pdf") Image.register_mime("PDF", "application/pdf")