0

docs: update optimizeimages instructions for py3

This commit is contained in:
Nicolas F
2019-03-21 15:21:43 +01:00
parent 11aa232141
commit a23682fec8

View File

@@ -722,6 +722,11 @@ Image options
.. warning::
Using image optimizers will increase render times significantly.
.. note::
With the port to Python 3, the import line has changed. Prefix the
``optimizeimages`` module with a period, so
``from .optimizeimages import foo, bar``.
This option specifies which additional tools overviewer should use to
optimize the filesize of rendered tiles.
The tools used must be placed somewhere where overviewer can find them, for
@@ -731,7 +736,7 @@ Image options
the order in which they're specified::
# Import the optimizers we need
from optimizeimages import pngnq, optipng
from .optimizeimages import pngnq, optipng
worlds["world"] = "/path/to/world"