Skip to main content

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:
mogrify_path: mogrify
image_width: 1500
diagrams_cache_dir: !path .diagramscache
```

`mogrify_path`
: Path to the `morgify` binary. By default, it is assumed that you have this command in `PATH`. [ImageMagick](https://imagemagick.org/) must be installed.

`image_width`
: Width of PNG images in pixels. By default, the width of each image is set by ImageMagick automatically. Default behavior is recommended. If the width is given explicitly, file size may increase.

`diagrams_cache_dir`
: Path to the directory with diagrams that are generated by [Blockdiag](https://github.com/foliant-docs/foliantcontrib.blockdiag) and [PlantUML](https://github.com/foliant-docs/foliantcontrib.plantuml) preprocessors. Default value is `.diagramscache`.

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.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for foliantcontrib.epsconvert-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0743aef4fb31155e8e7f3901edb87c0b991158712075c770f29b0543418d8127
MD5 028f3fef3e0e80d8350f168db1800aad
BLAKE2b-256 059f325dd4f48171de7b73311a88b2fe55c1975437a6fc3da760962affba0f05

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