From d33fa4a7329eb90c2a06bd9438cfefec96de43f0 Mon Sep 17 00:00:00 2001 From: franzz Date: Thu, 9 May 2019 19:40:45 +0200 Subject: [PATCH] fix picture orientation --- inc/picture.php | 2 +- masks/project.html | 6 +++--- script/lightbox.js | 11 +++++++++++ style/_lightbox.scss | 4 ++++ style/spot.css | 2 +- style/spot.css.map | 2 +- 6 files changed, 21 insertions(+), 6 deletions(-) diff --git a/inc/picture.php b/inc/picture.php index 0a157b1..c0920c7 100644 --- a/inc/picture.php +++ b/inc/picture.php @@ -145,7 +145,7 @@ class Picture extends PhpObject { $sPicPath = self::getPicPath($sPicName); $sThumbPath = self::getPicPath($sPicName, 'thumbnail'); - if(!file_exists($sThumbPath)) $asThumbInfo = ToolBox::createThumbnail($sPicPath, 400, 0, $sThumbPath/*, false, array('jpg', 'jpeg', 'gif', 'png'), true*/); + if(!file_exists($sThumbPath)) $asThumbInfo = ToolBox::createThumbnail($sPicPath, 400, 0, $sThumbPath, false, array('jpg', 'jpeg', 'gif', 'png'), false, true); else $asThumbInfo = array('error'=>'', 'out'=>$sThumbPath); return ($asThumbInfo['error']=='')?$asThumbInfo['out']:$sPicPath; diff --git a/masks/project.html b/masks/project.html index 440b57f..ee3f870 100755 --- a/masks/project.html +++ b/masks/project.html @@ -20,7 +20,7 @@
- +