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 PCD
^^^ ^^^
PIL reads PhotoCD files containing ``RGB`` data. By default, the 768x512 PIL reads PhotoCD files containing ``RGB`` data. This only reads the 768x512
resolution is read. You can use the :py:meth:`~PIL.Image.Image.draft` method to resolution image from the file. Higher resolutions are encoded in a proprietary
read the lower resolution versions instead, thus effectively resizing the image encoding.
to 384x256 or 192x128. Higher resolutions cannot be read by the Python Imaging
Library.
PIXAR PIXAR
^^^^^ ^^^^^

View File

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