Skip to content

Commit

Permalink
Document gs_binary property
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Sep 12, 2023
1 parent a84a435 commit 87e4386
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ in ``L``, ``RGB`` and ``CMYK`` modes.
Loading
~~~~~~~

To use Ghostscript, Pillow searches for the "gs" executable. On Windows, it
also searches for "gswin32c" and "gswin64c". If you would like to customise
this behaviour, `EpsImagePlugin.gs_binary = "gswin64"` will set the name of the
executable to use. `EpsImagePlugin.gs_binary = False` will prevent Ghostscript
from being used altogether.

If Ghostscript is available, you can call the :py:meth:`~PIL.Image.Image.load`
method with the following parameters to affect how Ghostscript renders the EPS
method with the following parameters to affect how Ghostscript renders the EPS.

**scale**
Affects the scale of the resultant rasterized image. If the EPS suggests
Expand Down

0 comments on commit 87e4386

Please sign in to comment.