From: vincent@cubedesigners.com Date: Wed, 14 Mar 2018 15:03:24 +0000 (+0000) Subject: #1981 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=204a2d3a8fc76c36e31946a6e767565ff1022c9b;p=cubeextranet.git #1981 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index bcfc42a0e..2ae40c71b 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -219,7 +219,7 @@ class wsHTML5Compiler { $this->width = round($size[0], 3); $this->height = round($size[1], 3); - $imagesize = getimagesize(wsDocument::getDir($this->pages[1]['document_id']) . 'html/h150-' . $this->pages[1]['document_page'] . '.jpg'); + $imagesize = CubeIT_Image::getimagesize(wsDocument::getDir($this->pages[1]['document_id']) . 'html/h150-' . $this->pages[1]['document_page'] . '.jpg'); $this->pdf2htmlRatio = round(($imagesize[0] * 0.48) / $this->width, 3); $this->cssScale = $this->z * min($this->optimalWidth / $this->width, $this->optimalHeight / $this->height); @@ -539,7 +539,7 @@ class wsHTML5Compiler { $socialTitle = $this->book->parametres->facebook_title ? $this->book->parametres->facebook_title : $titre; $socialDescription = $this->book->parametres->seoDescription ? $this->book->parametres->seoDescription : $this->book->parametres->seoDescription; $socialImage = 'https://workshop.fluidbook.com/services/facebook_thumbnail?id=' . $this->book_id . '&j=' . time(); - $dim = getimagesize($socialImage); + $dim = CubeIT_Image::getimagesize($socialImage); $socialImageWidth = $dim[0]; $socialImageHeight = $dim[1]; @@ -685,7 +685,7 @@ class wsHTML5Compiler { if ($seoArticle['image']) { $a['imageurl'] .= '&image=' . $seoArticle['image']; } - $dim = getimagesize($a['imageurl']); + $dim = CubeIT_Image::getimagesize($a['imageurl']); $a['imagewidth'] = $dim[0]; $a['imageheight'] = $dim[1]; foreach ($a as $k => $v) { @@ -743,7 +743,7 @@ class wsHTML5Compiler { $this->config->filesInfos = array(); } $infos = array('filesize' => filesize($file)); - $dim = getimagesize($file); + $dim = CubeIT_Image::getimagesize($file); if ($dim !== false) { $infos['width'] = $dim[0]; $infos['height'] = $dim[1]; @@ -1316,7 +1316,7 @@ class wsHTML5Compiler { } protected function _makeCover($orig) { - $size = getimagesize($orig); + $size = CubeIT_Image::getimagesize($orig); $w = $size[0]; $h = $size[1]; @@ -1624,7 +1624,7 @@ class wsHTML5Compiler { if ($this->theme->parametres->backgroundImage != '') { $bi = $this->themeRoot . '/' . $this->theme->parametres->backgroundImage; if (file_exists($bi)) { - $dbi = getimagesize($bi); + $dbi = CubeIT_Image::getimagesize($bi); $this->config->backgroundImageDimensions = array('width' => $dbi[0], 'height' => $dbi[1]); }