From a23682fec8e99fdd9c45054ee04d3721a1086671 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Thu, 21 Mar 2019 15:21:43 +0100 Subject: [PATCH] docs: update optimizeimages instructions for py3 --- docs/config.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/config.rst b/docs/config.rst index 6325683..19f9694 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -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"