Skip to main content

EPS to PNG converter for Foliant.

Project description

# EPSConvert

EPSConvert is a tool to convert EPS images into PNG format.

## 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
targets:
- pre
- mkdocs
- site
- ghp
```

`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.

`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

foliantcontrib.epsconvert-1.0.5.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file foliantcontrib.epsconvert-1.0.5.tar.gz.

File metadata

File hashes

Hashes for foliantcontrib.epsconvert-1.0.5.tar.gz
Algorithm Hash digest
SHA256 c0c269a91d8ff021655d00bc70d9e908978c7d088aa745757cd0047451a8cafa
MD5 0ca5e1486618ca326d95327daa781d6e
BLAKE2b-256 d5b9d6bf95eb37e1f51d0c41cb1140b94581dbf3e142462f0b948e20839e241c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page