:模式:sphinx.ext.imgconverter–使用Imagemagick的参考图像转换器

Added in version 1.6.

此插件将文档中的图像转换为适合生成器的格式。例如,它允许您在LaTexBuilder中使用SVG图像。因此,您不介意构建器支持什么图像格式。

By default the extension uses ImageMagick to perform conversions, and will not work if ImageMagick is not installed.

备注

ImageMagick rasterizes a SVG image on conversion. As a result, the image becomes not scalable. To avoid that, please use other image converters like sphinxcontrib-svg2pdfconverter (which uses Inkscape or rsvg-convert).

配置

image_converter

A path to a conversion command. By default, the imgconverter finds the command from search paths.

On Unix platforms, the command convert is used by default.

On Windows, the command magick is used by default.

在 3.1 版本发生变更: Use:command:在windows上,默认情况下为`magick`命令

image_converter_args

要提供给的其他命令行参数:command:convert,作为列表。默认值为空列表`[]``。

On Windows, it defaults to ["convert"].

在 3.1 版本发生变更: Use ["convert"] by default on Windows