mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Add SVG support (#2983)
This commit is contained in:
parent
e3d191fedb
commit
93d7245eab
@ -700,11 +700,8 @@ Configuration variables:
|
|||||||
To use images you will need to have the python ``pillow`` package installed.
|
To use images you will need to have the python ``pillow`` package installed.
|
||||||
If you're running this as a Home Assistant add-on or with the official ESPHome docker image, it should already be
|
If you're running this as a Home Assistant add-on or with the official ESPHome docker image, it should already be
|
||||||
installed. Otherwise you need to install it using ``pip install pillow``.
|
installed. Otherwise you need to install it using ``pip install pillow``.
|
||||||
|
Additionally, if you want to use SVG images (including MDI images), you will additionally need to have the python ``cairosvg`` package installed.
|
||||||
.. note::
|
If you're running this as a Home Assistant add-on or with the official ESPHome docker image, it should also already be
|
||||||
|
|
||||||
To use mdi images you will additionally need to have the python ``cairosvg`` package installed.
|
|
||||||
If you're running this as a Home Assistant add-on or with the official ESPHome docker image, it should already be
|
|
||||||
installed. Otherwise you need to install it using ``pip install cairosvg``.
|
installed. Otherwise you need to install it using ``pip install cairosvg``.
|
||||||
|
|
||||||
And then later in code:
|
And then later in code:
|
||||||
|
Loading…
Reference in New Issue
Block a user