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

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

Files for foliantcontrib.epsconvert, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size foliantcontrib.epsconvert-1.0.7-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size foliantcontrib.epsconvert-1.0.7.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page