From 3d2877ee2e0125df0280037339802c09743a53e1 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 7 Dec 2015 11:27:05 -0500 Subject: [PATCH] Resize images to 800px for hotspots - refs #7705 --- main/exercice/hotspot.class.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main/exercice/hotspot.class.php b/main/exercice/hotspot.class.php index f7ebb7ce54..40ba4002e5 100755 --- a/main/exercice/hotspot.class.php +++ b/main/exercice/hotspot.class.php @@ -67,12 +67,7 @@ class HotSpot extends Question // fixed width ang height if (file_exists($picturePath.'/'.$this->picture)) { - list($width,$height) = @getimagesize($picturePath.'/'.$this->picture); - if ($width > $height) { - $this->resizePicture('width', 545); - } else { - $this->resizePicture('height', 350); - } + $this->resizePicture('width', 800); $this->save(); } else { return false;