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.

Source Distribution

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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: foliantcontrib.epsconvert-1.0.6.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

Hashes for foliantcontrib.epsconvert-1.0.6.tar.gz
Algorithm Hash digest
SHA256 cc02af7a763632be90809577a4d1540e44e2538bf922445ea78e756abca9ed82
MD5 f51ce9fba7c90cef2b9cbe993a5245d7
BLAKE2b-256 f1b4f0d80814438908ec54defd7821297d9f8d2560b840e6c2a84ac0ac598b38

See more details on using hashes here.

File details

Details for the file foliantcontrib.epsconvert-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: foliantcontrib.epsconvert-1.0.6-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

Hashes for foliantcontrib.epsconvert-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 94bb90f6f763a7213e0ff6b0b15040bed231a981803327098636d2ac682bd0d2
MD5 475caefd7b08a534e39184d34e78dbc7
BLAKE2b-256 661a06eaa979a0baea98bc6767ba6a5201daeccb6bae9a80e054fbc7a88c3862

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