From 8155fde8448b02572d5f85fc670447a4911e9635 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 28 Nov 2017 17:35:39 +0000 Subject: [PATCH] fix #1811 @1.5 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index e4aea9910..5ff189a22 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -1262,6 +1262,7 @@ class zoomLink extends normalLink { public function generateImage() { $maxzoom = ((int)$this->to !== 0) ? $this->to : 2; // Max zoom level might not always be set in the link editor + $maxzoom = min($maxzoom, 4.166666667); // TODO: Consider generating higher-res images (eg. 2x) for HiDPI screens. Maybe some extra optimisations can be done on the larger images... -- 2.39.5