{ "info": { "author": "Artemy Lomov", "author_email": "artemy@lomov.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Documentation", "Topic :: Utilities" ], "description": "# ImgConvert\n\nImgConvert is a tool to convert images from an arbitrary format into PNG.\n\n## Installation\n\n```bash\n$ pip install foliantcontrib.imgconvert\n```\n\n## Config\n\nTo enable the preprocessor, add `imgconvert` to `preprocessors` section in the project config:\n\n```yaml\npreprocessors:\n - imgconvert\n```\n\nThe preprocessor has a number of options with the following default values:\n\n```yaml\npreprocessors:\n - imgconvert:\n convert_path: convert\n cache_dir: !path .imgconvertcache\n image_width: 0\n formats: {}\n```\n\n`convert_path`\n: Path to `convert` binary. By default, it is assumed that you have this command in `PATH`. [ImageMagick](https://imagemagick.org/) must be installed.\n\n`cache_dir`\n: Directory to store processed images. They may be reused later.\n\n`image_width`\n: 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.\n\n`formats`\n: Settings that apply to each format of source images.\n\nThe `formats` option may be used to define lists of targets for each format. If targets for a format are not specified explicitly, the preprocessor will be applied to all targets.\n\nExample:\n\n```yaml\nformats:\n eps:\n targets:\n - site\n svg:\n targets:\n - docx\n```\n\nFormats should be named in lowercase.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/foliant-docs/foliantcontrib.imgconvert", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "foliantcontrib.imgconvert", "package_url": "https://pypi.org/project/foliantcontrib.imgconvert/", "platform": "any", "project_url": "https://pypi.org/project/foliantcontrib.imgconvert/", "project_urls": { "Homepage": "https://github.com/foliant-docs/foliantcontrib.imgconvert" }, "release_url": "https://pypi.org/project/foliantcontrib.imgconvert/1.0.0/", "requires_dist": [ "foliant (>=1.0.4)" ], "requires_python": "", "summary": "Image converter for Foliant.", "version": "1.0.0" }, "last_serial": 5809016, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "000ac0d322e2130ca2c128937dffbc68", "sha256": "c42d97e4cb8a52e9b23e630d5e24b4289f6a7f23a23ace33a171388ea4adf9f8" }, "downloads": -1, "filename": "foliantcontrib.imgconvert-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "000ac0d322e2130ca2c128937dffbc68", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4741, "upload_time": "2019-09-10T13:40:30", "url": "https://files.pythonhosted.org/packages/ea/42/f71950e1e71ed3c09b1ef1c04aa85a3188ef6bb863ae0808a7c0d7df8269/foliantcontrib.imgconvert-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "acf47e790f96c84cfad5b69b924b5b4e", "sha256": "9c76bf38895f641424ebf49e9b09c631a99b70f0cf1785927e950b4f1c692dca" }, "downloads": -1, "filename": "foliantcontrib.imgconvert-1.0.0.tar.gz", "has_sig": false, "md5_digest": "acf47e790f96c84cfad5b69b924b5b4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3626, "upload_time": "2019-09-10T13:40:32", "url": "https://files.pythonhosted.org/packages/58/c8/380ee27b589a3dce2bfaf03fa45f5ab3d642c0c1f27c402bd4ea99281352/foliantcontrib.imgconvert-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "000ac0d322e2130ca2c128937dffbc68", "sha256": "c42d97e4cb8a52e9b23e630d5e24b4289f6a7f23a23ace33a171388ea4adf9f8" }, "downloads": -1, "filename": "foliantcontrib.imgconvert-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "000ac0d322e2130ca2c128937dffbc68", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4741, "upload_time": "2019-09-10T13:40:30", "url": "https://files.pythonhosted.org/packages/ea/42/f71950e1e71ed3c09b1ef1c04aa85a3188ef6bb863ae0808a7c0d7df8269/foliantcontrib.imgconvert-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "acf47e790f96c84cfad5b69b924b5b4e", "sha256": "9c76bf38895f641424ebf49e9b09c631a99b70f0cf1785927e950b4f1c692dca" }, "downloads": -1, "filename": "foliantcontrib.imgconvert-1.0.0.tar.gz", "has_sig": false, "md5_digest": "acf47e790f96c84cfad5b69b924b5b4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3626, "upload_time": "2019-09-10T13:40:32", "url": "https://files.pythonhosted.org/packages/58/c8/380ee27b589a3dce2bfaf03fa45f5ab3d642c0c1f27c402bd4ea99281352/foliantcontrib.imgconvert-1.0.0.tar.gz" } ] }