mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
commit
e0b153364b
|
@ -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
|
||||||
^^^^^
|
^^^^^
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user