mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add sphinx.ext.imgconverter
This commit is contained in:
@@ -15,6 +15,7 @@ These extensions are built in and can be activated by respective entries in the
|
||||
githubpages
|
||||
graphviz
|
||||
ifconfig
|
||||
imgconverter
|
||||
inheritance
|
||||
intersphinx
|
||||
linkcode
|
||||
|
||||
25
doc/ext/imgconverter.rst
Normal file
25
doc/ext/imgconverter.rst
Normal file
@@ -0,0 +1,25 @@
|
||||
.. highlight:: rest
|
||||
|
||||
:mod:`sphinx.ext.imgconverter` -- Convert images to appropriate format for builders
|
||||
===================================================================================
|
||||
|
||||
.. module:: sphinx.ext.imgconverter
|
||||
:synopsis: Convert images to appropriate format for builders
|
||||
|
||||
.. versionadded:: 1.6
|
||||
|
||||
This extension converts images in your document to appropriate format for builders.
|
||||
For example, it allows you to use SVG images with LaTeX builder.
|
||||
As a result, you don't mind what image format the builder supports.
|
||||
|
||||
Internally, this extension uses Imagemagick_ to convert images.
|
||||
|
||||
.. _Imagemagick: https://www.imagemagick.org/script/index.php
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
.. confval:: image_converter
|
||||
|
||||
A path to :command:`convert` command. By default, the imgconverter uses
|
||||
the command from search paths.
|
||||
Reference in New Issue
Block a user