Merge pull request #2137 from radarhere/docs

Documentation notes
This commit is contained in:
wiredfool 2016-09-29 05:40:55 -07:00 committed by GitHub
commit e0b153364b
2 changed files with 6 additions and 5 deletions

View File

@ -770,11 +770,9 @@ zero-indexed and random access is supported.
PCD
^^^
PIL reads PhotoCD files containing ``RGB`` data. By default, the 768x512
resolution is read. You can use the :py:meth:`~PIL.Image.Image.draft` method to
read the lower resolution versions instead, thus effectively resizing the image
to 384x256 or 192x128. Higher resolutions cannot be read by the Python Imaging
Library.
PIL reads PhotoCD files containing ``RGB`` data. This only reads the 768x512
resolution image from the file. Higher resolutions are encoded in a proprietary
encoding.
PIXAR
^^^^^

View File

@ -519,8 +519,11 @@ is done by reconfiguring the image decoder.
Reading in draft mode
^^^^^^^^^^^^^^^^^^^^^
This is only available for JPEG and MPO files.
::
from PIL import Image
from __future__ import print_function
im = Image.open(file)
print("original =", im.mode, im.size)