403Webshell
Server IP : 54.37.205.81  /  Your IP : 216.73.216.76
Web Server : nginx/1.22.1
System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64
User : debian ( 1000)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/PIL/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/PIL/__pycache__/JpegPresets.cpython-311.pyc
�

�"�c70����dZdgd�gd�gd�dgd�gd�gd�dgd�gd	�gd�dgd
�gd�gd�dgd�gd
�gd�dgd�gd�gd�dgd�gd�gd�dgd�gd�gd�dgd
�gd�gd�d�	ZdS)u
JPEG quality settings equivalent to the Photoshop settings.
Can be used when saving JPEG files.

The following presets are available by default:
``web_low``, ``web_medium``, ``web_high``, ``web_very_high``, ``web_maximum``,
``low``, ``medium``, ``high``, ``maximum``.
More presets can be added to the :py:data:`presets` dict if needed.

To apply the preset, specify::

  quality="preset_name"

To apply only the quantization table::

  qtables="preset_name"

To apply only the subsampling setting::

  subsampling="preset_name"

Example::

  im.save("image_name.jpg", quality="web_high")

Subsampling
-----------

Subsampling is the practice of encoding images by implementing less resolution
for chroma information than for luma information.
(ref.: https://en.wikipedia.org/wiki/Chroma_subsampling)

Possible subsampling values are 0, 1 and 2 that correspond to 4:4:4, 4:2:2 and
4:2:0.

You can get the subsampling of a JPEG with the
:func:`.JpegImagePlugin.get_sampling` function.

In JPEG compressed data a JPEG marker is used instead of an EXIF tag.
(ref.: https://exiv2.org/tags.html)


Quantization tables
-------------------

They are values use by the DCT (Discrete cosine transform) to remove
*unnecessary* information from the image (the lossy part of the compression).
(ref.: https://en.wikipedia.org/wiki/Quantization_matrix#Quantization_matrices,
https://en.wikipedia.org/wiki/JPEG#Quantization)

You can get the quantization tables of a JPEG with::

  im.quantization

This will return a dict with a number of lists. You can pass this dict
directly as the qtables argument when saving a JPEG.

The quantization table format in presets is a list with sublists. These formats
are interchangeable.

Libjpeg ref.:
https://web.archive.org/web/20120328125543/http://www.jpegcameras.com/libjpeg/libjpeg-3.html

�)@����'�2�.�>�Dr���&r
�5�Ar
rr�r
rrr
r
rr
r
rrr
r
r
rr
rrr
r
r
r
rrrr
r
r
r
r
r	rr
r
r
r
r
r
r
r
r
r
r
r
r
r
)@�r� r
�6r
r
r
r��r
rr
r
r
rrr�+�Br
r
r
r
r
rrr
r
r
r
rrrr
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
)�subsampling�quantization)@r�rrr�r�r�r�rrrrrr�
rr��#�/rrrrr �%r"�@rrrr r�3r$r$rrr r#r%r$r$r$rrr!r"r$r$r$r$rrr"r$r$r$r$r$)@�rr&rrr r
�0r�rr&rr r!rr&rr�r rrrrr&r)rrrrr$rrr rrr'r$r$r r rrr'�?r$r$r
r!rrr$r$r$r$r'rrr$r$r$r$r$�)@��r-r,�	rrrr-�r/r,��
rrr-r/r/r,r1r�r(r,r,r,rrrr(rr.r0r1rrrrrrr1rrrrrrrrr2r(rrrrrrr(rrrrr)@�r3rrr rrrr3rrrrrrrrrr&rrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)@rrrr�r-r/r,rrrrr4r-r/r,rrrrr-r/r3r.rrrr-r/r3r.rr4r4r-r/r0r1rrr-r-r/r3r1rrrr/r/r3r.rrrrr,r,r.rrrrr)@r4r4r/r.rrrrr4r-r,rr2rrrr/r,r.r2rrrrr.rr2rrrrrrr2rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)@�r5r5r5r5r5r5r5r5r5r5r5r5r5r5r5r5r5r5r5r5r5r5rr5r5r5r5r5r5rrr5r5r5r5r5rrr4r5r5r5r5rrr4r4r5r5r5rrr4r4r4r5r5rrr4r4r4r4)@r5r5r5rrr4r4r4r5r5r5rr4r4r4r4r5r5r5r4r4r4r4r4rrr4r4r4r4r4r4rr4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4)@rr2r2rrr!�"r&r2rrr(r rrrr2rr&rrrrrrr(rrrrrrrr rrrrrrr!rrrrrrrr6rrrrrrrr&rrrrrrr)@rr(r)rrrr&r&r(rrr2r2rrrr)rr2r2rrrrrr2r2rrrrrrr2rrrrrrrrrrrrrrr&rrrrrrrr&rrrrrrr)@rr0r0rr&rrr&r0r.r.rrr(rrr0r.r1rr(rrrrrrrrrrrr&rr(rrrrrrr(rrrrrrrrrrrrrrr&rrrrrrr)@rrrrrrr&r&rr2r2r2r2rrrrr2r2r2rrrrrr2r2rrrrrrr2rrrrrrrrrrrrrrr&rrrrrrrr&rrrrrrr)@r,r-r-r,r.rrrr-r/r/r,r0r1rrr-r/r/r,r1rrrr,r,r,rrrrrr.r0r1rrrrrrr1rrrrrrrrrrrrrrrrrrrrrr)@r3r3rrrrr&r&r3rrr2r2rrrrrr2r2rrrrrr2r2rrrrrrr2rrrrrrrrrrrrrrr&rrrrrrrr&rrrrrrr)@r4r4r/r.rrrrr4r-r,r1r2rrrr/r,r.r2rrrrr.r1r2rrrrrrr2rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)	�web_low�
web_medium�web_high�
web_very_high�web_maximum�low�medium�high�maximumN)�__doc__�presets���1/usr/lib/python3/dist-packages/PIL/JpegPresets.py�<module>rEs��?�?�F./� @� @� @� @� @� @�. �!�!�&./� @� @� @� @� @� @�.� � �&./� @� @� @� @� @� @�.� � �&/0� @� @� @� @� @� @�/ �!�!�&./�!@�!@�!@�!@�!@�!@�.� � �&./� @� @� @� @� @� @�.� � �&./� @� @� @� @� @� @�.� � �&./� @� @� @� @� @� @�.� � �&./� @� @� @� @� @� @�.� � �sl�l���rC

Youez - 2016 - github.com/yon3zu
LinuXploit