mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Added documentation for the newly added scale argument to EPS’s load() function.
This commit is contained in:
parent
582d54d055
commit
16a0a640f2
|
@ -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,
|
||||
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
|
||||
^^^
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user