Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/PIL/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/PIL/__pycache__/JpegPresets.cpython-35.pyc



�ʴWz0�U@shdZddddddddd	d
dddd
ddddddddddddddddddddddd	dddddddd
dddddddddddddddddddddddg@ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddg@giddddddddddddddddddddddd ddd!d"d#ddddd!d$d#d%dddd!dd&d%d%ddd!d$d&d%d%d%ddd"d#d%d%d%d%ddd#d%d%d%d%d%g@d'dd'ddd!dd(dd)d
d'dd!d"dd'd
dd*d!dd
ddd'd*ddddd%ddd!ddd(d%d%d!d!ddd(d+d%d%dd"d
dd%d%d%d%d(ddd%d%d%d%d%g@gid,dd-dd.d/d/d.d0dddd/d1d1d.d2d3ddd/d1d1d.d3dd4d)d.d.d.dddd)dd0d2d3ddddddd3ddddddddd4d)ddddddd)dddddg@d5d5d dd!dddd5dddddddd dd'dddddddddddddd!dddddddddddddddddddddddddddddddg@gid6dd-dddddd7d/d1d.ddddd7d/d1d.ddddd/d1d5d0dddd/d1d5d0dd7d7d/d1d2d3ddd/d/d1d5d3dddd1d1d5d0ddddd.d.d0dddddg@d7d7d1d0d dddd7d/d.dd4dddd1d.d0d4ddddd0dd4dddddd d4ddddddddddddddddddddddddddddddg@gid8dd-dd9d9d9d9d9d9d9d9d9d9d9d9d9d9d9d9d9d9d9d9d9d9d9dd9d9d9d9d9d9ddd9d9d9d9d9ddd7d9d9d9d9ddd7d7d9d9d9ddd7d7d7d9d9ddd7d7d7d7g@d9d9d9ddd7d7d7d9d9d9dd7d7d7d7d9d9d9d7d7d7d7d7ddd7d7d7d7d7d7dd7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7d7g@gid:dddd
d4d4ddd"d;d'd4ddd)d!dddd4dd'ddddddd)dddddddd!ddddddd"dddddddd;dddddddd'dddddddg@dd)d*dddd'd'd)ddd4d4dddd*dd4d4dddddd4d4ddddddd4ddddddddddddddd'dddddddd'dddddddg@gid<ddddd2d2dd'ddd'd2d0d0ddd)ddd2d0d3dd)dddddddddddd'dd)ddddddd)ddddddddddddddd'dddddddg@d dd dddd'd'dd4d4d4d4dddd d4d4d4dddddd4d4ddddddd4ddddddddddddddd'dddddddd'dddddddg@gid=dd-dd.d/d/d.d0dddd/d1d1d.d2d3ddd/d1d1d.d3dddd.d.d.dddddd0d2d3ddddddd3ddddddddddddddddddddddg@d5d5d dddd'd'd5ddd4d4dddd dd4d4dddddd4d4ddddddd4ddddddddddddddd'dddddddd'dddddddg@gid>dd-dddddd7d/d1d.ddddd7d/d1d.ddddd/d1d5d0dddd/d1d5d0dd7d7d/d1d2d3ddd/d/d1d5d3dddd1d1d5d0ddddd.d.d0dddddg@d7d7d1d0d dddd7d/d.d3d4dddd1d.d0d4ddddd0d3d4dddddd d4ddddddddddddddddddddddddddddddg@gii	Zd?S)@at
JPEG quality settings equivalent to the Photoshop settings.

More presets can be added to the presets dict if needed.

Can be use when saving JPEG file.

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:1:1 (or 4:2:0?).

You can get the subsampling of a JPEG with the
`JpegImagePlugin.get_subsampling(im)` function.


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 arrays. You can pass this dict
directly as the qtables argument when saving a JPEG.

The tables format between im.quantization and quantization in presets differ in
3 ways:

1. The base container of the preset is a list with sublists instead of dict.
   dict[0] -> list[0], dict[1] -> list[1], ...
2. Each table in a preset is a list instead of an array.
3. The zigzag order is remove in the preset (needed by libjpeg >= 6a).

You can convert the dict format to the preset format with the
`JpegImagePlugin.convert_dict_qtables(dict_qtables)` function.

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

Zweb_lowZsubsampling�Zquantization����'�2�.�>�D���&�5�A��� �6���+�BZ
web_medium������
��#�/�%�@�3��0���?Zweb_high����	���
��Z
web_very_high�Zweb_maximum��low�"Zmedium�highZmaximumN)�__doc__Zpresets�r7r7�B/opt/alt/python35/lib64/python3.5/site-packages/PIL/JpegPresets.py�<module>CsD	!	!	!	!	!	!	!	!