Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
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-310.pyc
o

Z#�a;0�@s�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://www.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r
rr	r	rrrr
rr	r	r	rrr
rr	r	r	r	rr
rr	r	r	r	r	rrr	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rr
r	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�rrrrrr�
rr��#�/rrrrr�%r!�@rrrrr�3r#r#rrrr"r$r#r#r#rrr r!r#r#r#r#rrr!r#r#r#r#r#)@�rr%rrrr�0r�r
r%rrr rr%r
r�rrrr
rr%r(rrrr
r#rrrrrr&r#r#rrrrr&�?r#r#rr rr
r#r#r#r#r&rr
r#r#r#r#r#�)@��r,r+�	rrrr,�r.r+��
rrr,r.r.r+r0r�r'r+r+r+rrrr'rr-r/r0rrrrrrr0rrrrrrrrr1r'rrrrrrr'rrrrr)@�r2rrrrrrr2rrrrrrrrrr%rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)@rrrr�r,r.r+rrrrr3r,r.r+rrrrr,r.r2r-rrrr,r.r2r-rr3r3r,r.r/r0rrr,r,r.r2r0rrrr.r.r2r-rrrrr+r+r-rrrrr)@r3r3r.r-rrrrr3r,r+rr1rrrr.r+r-r1rrrrr-rr1rrrrrrr1rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)@�r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4rr4r4r4r4r4r4rrr4r4r4r4r4rrr3r4r4r4r4rrr3r3r4r4r4rrr3r3r3r4r4rrr3r3r3r3)@r4r4r4rrr3r3r3r4r4r4rr3r3r3r3r4r4r4r3r3r3r3r3rrr3r3r3r3r3r3rr3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3r3)@r
r1r1rrr �"r%r1rrr'rrrrr1rr%rrrrrrr'rrrrrrrrrrrrrrr rrrrrrrr5rrrrrrrr%rrrrrrr)@rr'r(rrrr%r%r'rrr1r1rrrr(rr1r1rrrrrr1r1rrrrrrr1rrrrrrrrrrrrrrr%rrrrrrrr%rrrrrrr)@rr/r/rr%rrr%r/r-r-rrr'rrr/r-r0rr'rrrrrrrrrrrr%rr'rrrrrrr'rrrrrrrrrrrrrrr%rrrrrrr)@rrrrrrr%r%rr1r1r1r1rrrrr1r1r1rrrrrr1r1rrrrrrr1rrrrrrrrrrrrrrr%rrrrrrrr%rrrrrrr)@r+r,r,r+r-rrrr,r.r.r+r/r0rrr,r.r.r+r0rrrr+r+r+rrrrrr-r/r0rrrrrrr0rrrrrrrrrrrrrrrrrrrrrr)@r2r2rrrrr%r%r2rrr1r1rrrrrr1r1rrrrrr1r1rrrrrrr1rrrrrrrrrrrrrrr%rrrrrrrr%rrrrrrr)@r3r3r.r-rrrrr3r,r+r0r1rrrr.r+r-r1rrrrr-r0r1rrrrrrr1rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)	�web_low�
web_medium�web_high�
web_very_high�web_maximum�low�medium�high�maximumN)�__doc__�presets�rArA�1/usr/lib/python3/dist-packages/PIL/JpegPresets.py�<module>s`C�������������������
�

Youez - 2016 - github.com/yon3zu
LinuXploit