$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);
$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];
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) {
$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];
}
protected function _makeCover($orig) {
- $size = getimagesize($orig);
+ $size = CubeIT_Image::getimagesize($orig);
$w = $size[0];
$h = $size[1];
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]);
}