]> _ Git - cubeextranet.git/commitdiff
#1981
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 14 Mar 2018 15:03:24 +0000 (15:03 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 14 Mar 2018 15:03:24 +0000 (15:03 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index bcfc42a0ec1fb0ad5625645e9d5e1b38e860fc6f..2ae40c71b735603ea9dcaf8f368cd5b9d43977f6 100644 (file)
@@ -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]);
                        }