403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/PIL/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/PIL/__pycache__/JpegPresets.cpython-39.pyc
a

h�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	)ZsubsamplingZquantization)@r�rrr�r�r�r�rrrrrr�
rr��#�/rrrrr�%r�@rrrrr�3r!r!rrrr r"r!r!r!rrrrr!r!r!r!rrrr!r!r!r!r!)@�rr#rrrr�0r�r
r#rrrrr#r
r�rrrr
rr#r&rrrr
r!rrrrrr$r!r!rrrrr$�?r!r!rrrr
r!r!r!r!r$rr
r!r!r!r!r!�)@��r*r)�	rrrr*�r,r)��
rrr*r,r,r)r.r�r%r)r)r)rrrr%rr+r-r.rrrrrrr.rrrrrrrrr/r%rrrrrrr%rrrrr)@�r0rrrrrrr0rrrrrrrrrr#rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)@rrrr�r*r,r)rrrrr1r*r,r)rrrrr*r,r0r+rrrr*r,r0r+rr1r1r*r,r-r.rrr*r*r,r0r.rrrr,r,r0r+rrrrr)r)r+rrrrr)@r1r1r,r+rrrrr1r*r)rr/rrrr,r)r+r/rrrrr+rr/rrrrrrr/rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)@�r2r2r2r2r2r2r2r2r2r2r2r2r2r2r2r2r2r2r2r2r2r2rr2r2r2r2r2r2rrr2r2r2r2r2rrr1r2r2r2r2rrr1r1r2r2r2rrr1r1r1r2r2rrr1r1r1r1)@r2r2r2rrr1r1r1r2r2r2rr1r1r1r1r2r2r2r1r1r1r1r1rrr1r1r1r1r1r1rr1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1r1)@r
r/r/rrr�"r#r/rrr%rrrrr/rr#rrrrrrr%rrrrrrrrrrrrrrrrrrrrrrr3rrrrrrrr#rrrrrrr)@rr%r&rrrr#r#r%rrr/r/rrrr&rr/r/rrrrrr/r/rrrrrrr/rrrrrrrrrrrrrrr#rrrrrrrr#rrrrrrr)@rr-r-rr#rrr#r-r+r+rrr%rrr-r+r.rr%rrrrrrrrrrrr#rr%rrrrrrr%rrrrrrrrrrrrrrr#rrrrrrr)@rrrrrrr#r#rr/r/r/r/rrrrr/r/r/rrrrrr/r/rrrrrrr/rrrrrrrrrrrrrrr#rrrrrrrr#rrrrrrr)@r)r*r*r)r+rrrr*r,r,r)r-r.rrr*r,r,r)r.rrrr)r)r)rrrrrr+r-r.rrrrrrr.rrrrrrrrrrrrrrrrrrrrrr)@r0r0rrrrr#r#r0rrr/r/rrrrrr/r/rrrrrr/r/rrrrrrr/rrrrrrrrrrrrrrr#rrrrrrrr#rrrrrrr)@r1r1r,r+rrrrr1r*r)r.r/rrrr,r)r+r/rrrrr+r.r/rrrrrrr/rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)	Zweb_lowZ
web_mediumZweb_highZ
web_very_highZweb_maximumZlowZmediumZhighZmaximumN)�__doc__Zpresets�r5r5�3/usr/lib/python3.9/site-packages/PIL/JpegPresets.py�<module>s^C��������������������

Youez - 2016 - github.com/yon3zu
LinuXploit