Added documentation for the newly added scale argument to EPS’s load() function.

This commit is contained in:
Esteban Santana Santana 2013-11-20 01:14:51 -06:00
parent 582d54d055
commit 16a0a640f2

View File

@ -36,6 +36,20 @@ PIL identifies EPS files containing image data, and can read files that contain
embedded raster images (ImageData descriptors). If Ghostscript is available, embedded raster images (ImageData descriptors). If Ghostscript is available,
other EPS files can be read as well. The EPS driver can also write EPS images. other EPS files can be read as well. The EPS driver can also write EPS images.
If Ghostscript is available, you can call the :py:meth:`~PIL.Image.Image.load`
method with the following parameter to affect how Ghostscript renders the EPS
**scale**
Affects the scale of the resultant rasterized image. If the EPS suggests
that the image be rendered at 100px x 100px, setting this parameter to
2 will make the Ghostscript render a 200px x 200px image instead. The
relative position of the bounding box is maintained::
im = Image.open(...)
im.size #(100,100)
im.load(scale=2)
im.size #(200,200)
GIF GIF
^^^ ^^^
@ -273,19 +287,19 @@ format are currently undocumented.
The :py:meth:`~PIL.Image.Image.save` method supports the following options: The :py:meth:`~PIL.Image.Image.save` method supports the following options:
**lossless** **lossless**
If present, instructs the WEBP writer to use lossless If present, instructs the WEBP writer to use lossless
compression. compression.
**quality** **quality**
Integer, 1-100, Defaults to 80. Sets the quality level for Integer, 1-100, Defaults to 80. Sets the quality level for
lossy compression. lossy compression.
**icc_procfile** **icc_procfile**
The ICC Profile to include in the saved file. Only supported if The ICC Profile to include in the saved file. Only supported if
the system webp library was built with webpmux support. the system webp library was built with webpmux support.
**exif** **exif**
The exif data to include in the saved file. Only supported if The exif data to include in the saved file. Only supported if
the system webp library was built with webpmux support. the system webp library was built with webpmux support.