From: vincent@cubedesigners.com Date: Tue, 13 Jun 2017 16:25:05 +0000 (+0000) Subject: #1445 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fc80d82c1ea60a42356d5e9e01e75531c772c95d;p=cubeextranet.git #1445 @1 --- diff --git a/inc/ws/Util/html5/slider/class.ws.html5.compiler.php b/inc/ws/Util/html5/slider/class.ws.html5.compiler.php index 068b0877e..14dc81df3 100644 --- a/inc/ws/Util/html5/slider/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/slider/class.ws.html5.compiler.php @@ -1123,10 +1123,12 @@ class wsHTML5Compiler { $cache = WS_CACHE . '/thumbsprites/' . hash('sha256', $hash) . '.jpg'; $dest = $this->vdir . '/data/thumbnails/s' . $k . '.jpg'; if (!file_exists($cache)) { - $cmd = 'montage ' . implode(' ', $files) . ' -geometry 100x+0+0 -background transparent -tile ' . $cols . 'x' . $srows . ' ' . $cache; + $ratio = $this->width / $this->height; + $thumbh = round(100 / $ratio); + $cmd = 'montage ' . implode(' ', $files) . ' -geometry 100x' . $thumbh . '!+0+0 -background transparent -tile ' . $cols . 'x' . $srows . ' ' . $cache; + $res .= `$cmd`; } copy($cache, $dest); - $res .= `$cmd`; $k++; } return $res;