]> _ Git - cubeextranet.git/commitdiff
wait #4594 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 15 Jul 2021 15:25:09 +0000 (15:25 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 15 Jul 2021 15:25:09 +0000 (15:25 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 2b547b571dfb1391a303e97f2fd524c2e0be5477..553bfff21e6f0fa872dbcae0c88e813d6d20a3d2 100644 (file)
@@ -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;
         }