EPS to PNG converter for Foliant.
Project description
EPSConvert
EPSConvert is a tool to convert EPS images into PNG format.
Installation
$ pip install foliantcontrib.epsconvert
Config
To enable the preprocessor, add epsconvert
to 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
convert_path
: Path to convert
binary. By default, it is assumed that you have this command in PATH
. ImageMagick must be installed.
cache_dir
: Directory to store processed images. They may be reused later.
image_width
: 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.
targets
: Allowed targets for the preprocessor. If not specified (by default), the preprocessor applies to all targets.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file foliantcontrib.epsconvert-1.0.7.tar.gz
.
File metadata
- Download URL: foliantcontrib.epsconvert-1.0.7.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d90f1e4145a5b8183bff263cfe5a4abf995bb315965c1d78bace590a43773522 |
|
MD5 | c15cd92e3a2a6f11cbc278ce19867a64 |
|
BLAKE2b-256 | 1be03cecf034b2f55b914e6bf180fafd671521c75f2a8af36ce8989f3e32095c |
File details
Details for the file foliantcontrib.epsconvert-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: foliantcontrib.epsconvert-1.0.7-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8db877d926e64e7d7e44fa8f40dcd69e119ace0cb0ee7bcb586edd4e20723b37 |
|
MD5 | 199d91b751bedbff5b4c427b81a484f0 |
|
BLAKE2b-256 | 21e76a7013dc0b6c66358792a4452cecacfb0cd8d762c2d24fed911eaf017a95 |