EPSConvert is a tool to convert EPS images into PNG format.
$ pip install foliantcontrib.epsconvert
To enable the preprocessor, add
preprocessors section in the project config:
preprocessors: - epsconvert
The preprocessor has a number of options:
preprocessors: - epsconvert: convert_path: convert cache_dir: !path .epsconvertcache image_width: 0 targets: - pre - mkdocs - site - ghp
- Path to
convertbinary. By default, it is assumed that you have this command in
PATH. ImageMagick must be installed.
- Directory to store processed images. They may be reused later.
- Width of PNG images in pixels. By default (in case when the value is
0), the width of each image is set by ImageMagick automatically. Default behavior is recommended. If the width is given explicitly, file size may increase.
- Allowed targets for the preprocessor. If not specified (by default), the preprocessor applies to all targets.