From: vincent@cubedesigners.com Date: Thu, 15 Jul 2021 15:25:09 +0000 (+0000) Subject: wait #4594 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b25043381e10555fd802598e8a456bf881db3ee0;p=cubeextranet.git wait #4594 @0.5 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 2b547b571..553bfff21 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -2519,8 +2519,15 @@ class zoomLink extends normalLink array('x' => 0, 'y' => $y, 'width' => $diff, 'height' => $h), $right, $extractOptions, WS_CACHE . '/' . $cachedir . '/' . $compiler->book_id . '/'); + if (!file_exists($rightfile)) { + die('Error generating right part ' . $rightfile); + } + $both = CubeIT_Files::tempnam() . '.jpg'; CubeIT_CommandLine_Imagemagick::append(array($leftfile, $rightfile), $both, 'horizontal'); + if (!file_exists($both)) { + die('Error glueing ' . $leftfile . ' and ' . $rightfile); + } } else { $both = $leftfile; }