{
"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": "# ImageMagick Preprocessor\n\nThis tool provides additional processing of images that referred in Markdown source, with [ImageMagick](https://imagemagick.org/).\n\n## Installation\n\n```bash\n$ pip install foliantcontrib.imagemagick\n```\n\n## Config\n\nTo enable the preprocessor, add `imagemagick` to `preprocessors` section in the project config:\n\n```yaml\npreprocessors:\n - imagemagick\n```\n\nThe preprocessor has a number of options with the following default values:\n\n```yaml\npreprocessors:\n - imagemagick:\n convert_path: convert\n cache_dir: .imagemagickcache\n```\n\n`convert_path`\n: Path to `convert` binary, a part of ImageMagick.\n\n`cache_dir`\n: Directory to store processed images. These files can be reused later.\n\n## Usage\n\nSuppose you want to apply the following command to your picture `image.eps`:\n\n```bash\n$ convert image.eps -resize 600 -background Orange label:'Picture' +swap -gravity Center -append image.jpg\n```\n\nThis command takes the source EPS image `image.eps`, resizes it, puts a text label over the picture, and writes the result into new file `image.jpg`. The suffix of output file name specifies that the image must be converted into JPEG format.\n\nTo use the ImageMagick preprocessor to do the same, enclose one or more image references in your Markdown source between `<` and `` tags.\n\n```markdown\n<\n(leading exclamation mark here)[Optional Caption](image.eps)\n\n```\n\nUse `output_format` attribute to specify the suffix of output file name. The whole output file name will be generated automatically.\n\nUse `command_params` attribute to specify the string of parameters that should be passed to ImageMagick `convert` binary.\n\nInstead of using `command_params` attribute, you may specify each parameter as its own attribute with the same name:\n\n```markdown\n<\n(leading exclamation mark here)[Optional Caption](image.eps)\n\n```\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.imagemagick",
"keywords": "",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "foliantcontrib.imagemagick",
"package_url": "https://pypi.org/project/foliantcontrib.imagemagick/",
"platform": "any",
"project_url": "https://pypi.org/project/foliantcontrib.imagemagick/",
"project_urls": {
"Homepage": "https://github.com/foliant-docs/foliantcontrib.imagemagick"
},
"release_url": "https://pypi.org/project/foliantcontrib.imagemagick/1.0.2/",
"requires_dist": [
"foliant (>=1.0.4)"
],
"requires_python": "",
"summary": "ImageMagick preprocessor for Foliant.",
"version": "1.0.2"
},
"last_serial": 5759622,
"releases": {
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "e43cfe5dbf5fa6ff0e5a8736e407340f",
"sha256": "23027ba5bbdba664f8365342717aee971231d548b2ed18b681abcfdb843c246f"
},
"downloads": -1,
"filename": "foliantcontrib.imagemagick-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "e43cfe5dbf5fa6ff0e5a8736e407340f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3682,
"upload_time": "2018-05-18T11:59:41",
"url": "https://files.pythonhosted.org/packages/3e/a4/66474946c979d2d4c61bd83d38d06c6acfc7c6c000da087bde3d32f4dee9/foliantcontrib.imagemagick-1.0.0.tar.gz"
}
],
"1.0.1": [
{
"comment_text": "",
"digests": {
"md5": "0eae516725a350291b31854f6867efea",
"sha256": "de669fa1b360197f1eb01f536847f2b0b8ba6bd183f5141ff3b0453cbdd13714"
},
"downloads": -1,
"filename": "foliantcontrib.imagemagick-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "0eae516725a350291b31854f6867efea",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3705,
"upload_time": "2018-11-16T13:18:24",
"url": "https://files.pythonhosted.org/packages/e5/63/e0352ab59b95ab347a220296aa1c14917d0a8faa1509052b4ca0adf63d6f/foliantcontrib.imagemagick-1.0.1.tar.gz"
}
],
"1.0.2": [
{
"comment_text": "",
"digests": {
"md5": "01f930209584b12146ec8aa078b1ff65",
"sha256": "c6e03df48d26a5b71a0fc364a21e3ed245d7d8de2f0fa74ea3fbf2e0eb750fc1"
},
"downloads": -1,
"filename": "foliantcontrib.imagemagick-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "01f930209584b12146ec8aa078b1ff65",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4879,
"upload_time": "2019-08-22T16:18:56",
"url": "https://files.pythonhosted.org/packages/4d/b0/07003bc87736282ada3f29742ba02bc5e9ac19a394cf75fbae284886bb5f/foliantcontrib.imagemagick-1.0.2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "43508b020611d7013f3c44ba7bd4a166",
"sha256": "af558605eb6da8d0a384fe69dc637100de3bbbb8a55a309b4f5d89f545227f15"
},
"downloads": -1,
"filename": "foliantcontrib.imagemagick-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "43508b020611d7013f3c44ba7bd4a166",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3741,
"upload_time": "2019-08-22T16:18:57",
"url": "https://files.pythonhosted.org/packages/e5/8d/9c6b40de4b05e3b12231d3bb98225238e157cf6e9db375cf5b146fafa8ef/foliantcontrib.imagemagick-1.0.2.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "01f930209584b12146ec8aa078b1ff65",
"sha256": "c6e03df48d26a5b71a0fc364a21e3ed245d7d8de2f0fa74ea3fbf2e0eb750fc1"
},
"downloads": -1,
"filename": "foliantcontrib.imagemagick-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "01f930209584b12146ec8aa078b1ff65",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4879,
"upload_time": "2019-08-22T16:18:56",
"url": "https://files.pythonhosted.org/packages/4d/b0/07003bc87736282ada3f29742ba02bc5e9ac19a394cf75fbae284886bb5f/foliantcontrib.imagemagick-1.0.2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "43508b020611d7013f3c44ba7bd4a166",
"sha256": "af558605eb6da8d0a384fe69dc637100de3bbbb8a55a309b4f5d89f545227f15"
},
"downloads": -1,
"filename": "foliantcontrib.imagemagick-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "43508b020611d7013f3c44ba7bd4a166",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3741,
"upload_time": "2019-08-22T16:18:57",
"url": "https://files.pythonhosted.org/packages/e5/8d/9c6b40de4b05e3b12231d3bb98225238e157cf6e9db375cf5b146fafa8ef/foliantcontrib.imagemagick-1.0.2.tar.gz"
}
]
}