]> _ Git - fluidbook_processfarm.git/commitdiff
wip #6112 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Jul 2023 09:45:24 +0000 (11:45 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Jul 2023 09:45:24 +0000 (11:45 +0200)
app/src/ProcessFile.php
app/src/ProcessToolboxDocumentFile.php
update

index 1c55cfbb003e267d2c898cde98996f9205c03e7f..ca16608dd9410f4d19660f5c238a2e67ef7aaa7a 100644 (file)
@@ -29,6 +29,8 @@ class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile {
 
        public function __construct($out, $page, $resolutionRatio, $mobileRatio, $format = 'jpg', $resolution = 150, $quality = 85, $withGraphics = true, $withTexts = true, $version = 'html', $force = false) {
 
+               error_log('Begin process file : [' . $out . ',' . $page . ']');
+
                if (stristr($out, 'usstorage')) {
                        $this->setRegion('US');
                }
@@ -136,7 +138,7 @@ class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile {
 
        public function getPdf(): string|null {
                $res = Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
-               if(null===$res) {
+               if (null === $res) {
                        echo 'no pdf in ' . $this->getOut();
                }
                return $res;
index 68a10e4fad22bcb518b2e3b6961f05169c14155d..af611dd978ff051158e99611636e1db6e3b918ec 100644 (file)
@@ -11,9 +11,9 @@ class ProcessToolboxDocumentFile extends ProcessFile {
        public function process() {
                $res = $this->getPath($this->isForce());
                if (!file_exists($res)) {
-                       error_log($res . 'not found :(');
+                       error_log($res . ' not found :(');
                }else{
-                       error_log($res . 'ok :)');
+                       error_log($res . ' ok :)');
                }
                return $res;
        }
diff --git a/update b/update
index 695faa08f8bc09a14c09fea90697746858265cd8..a59a41ecb65e4c97b31ffb13c37a0230e5e6cd2e 100755 (executable)
--- a/update
+++ b/update
@@ -8,6 +8,7 @@ git stash
 git pull origin master
 chmod 755 /docker/fluidbook-processfarm/app/bin/*
 chmod 755 /docker/fluidbook-processfarm/app/vendor/cubist/pdf/resources/tools/fwstk.sh
+chmod 755 /docker/fluidbook-processfarm/app/vendor/fluidbook/tools/resources/tools/svgcleaner/svgcleaner
 chmod 755 /docker/fluidbook-processfarm/ssh
 chmod 600 /docker/fluidbook-processfarm/ssh/id_rsa
 DOCKER_BUILDKIT=1 docker compose build