EPS to PNG converter for Foliant.
Project description
# EPSConvert
EPSConvert is a tool to convert EPS images into PNG format. This operation applies to any target excluding `pdf`.
## Installation
```bash
$ pip install foliantcontrib.epsconvert
```
## Config
To enable the preprocessor, add `epsconvert` to `preprocessors` section in the project config:
```yaml
preprocessors:
- epsconvert
```
The preprocessor has a number of options:
```yaml
preprocessors:
- epsconvert:
convert_path: convert
cache_dir: !path .epsconvertcache
image_width: 0
```
`convert_path`
: Path to `convert` binary. By default, it is assumed that you have this command in `PATH`. [ImageMagick](https://imagemagick.org/) 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.
EPSConvert is a tool to convert EPS images into PNG format. This operation applies to any target excluding `pdf`.
## Installation
```bash
$ pip install foliantcontrib.epsconvert
```
## Config
To enable the preprocessor, add `epsconvert` to `preprocessors` section in the project config:
```yaml
preprocessors:
- epsconvert
```
The preprocessor has a number of options:
```yaml
preprocessors:
- epsconvert:
convert_path: convert
cache_dir: !path .epsconvertcache
image_width: 0
```
`convert_path`
: Path to `convert` binary. By default, it is assumed that you have this command in `PATH`. [ImageMagick](https://imagemagick.org/) 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.
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
Close
Hashes for foliantcontrib.epsconvert-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec961712bf6ba7ba80f8eca42bd864d462bcee1fe4623532f1c7a5b166de4678 |
|
MD5 | 7305dc2ec161ce65324099ec8021597d |
|
BLAKE2b-256 | 30c82460a7d689721afc6191e70d0379833b72443120cfe8c0a82407b47c1f02 |