Resize images to 800px for hotspots - refs #7705

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent de63780e8d
commit 3d2877ee2e
  1. 7
      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;

Loading…
Cancel
Save