]> _ Git - fluidbook_processfarm.git/commitdiff
#7340 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Feb 2025 18:44:19 +0000 (19:44 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Feb 2025 18:44:19 +0000 (19:44 +0100)
app/src/ProcessFile.php

index 1c72183e0a4f529bc86415a781a31848f1d3ab34..a1c236dd0b88127c0380d099706d64ca1ddfe003 100644 (file)
@@ -24,14 +24,15 @@ class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile
     protected $mobileRatio = 1;
     protected $resolutionRatio = 1;
 
+
     protected $quality = 85;
     protected $filespath;
     protected $_job = null;
 
-    public function __construct($out, $page, $resolutionRatio, $mobileRatio, $format = 'jpg', $resolution = 150, $quality = 85, $withGraphics = true, $withTexts = true, $version = 'html', $force = false)
+    public function __construct($out, $page, $resolutionRatio, $mobileRatio, $format = 'jpg', $resolution = 150, $quality = 85, $withGraphics = true, $withTexts = true, $transparent = false, $version = 'html', $force = false)
     {
 
-        error_log('Begin process file : [' . $out . ',' . $page . ',' . $format . ',' . $resolution . ',' . $quality . ',' . ($withGraphics ? 'graphics' : 'no graphics') . ',' . ($withTexts ? 'texts' : 'no texts') . ',' . $resolutionRatio . '|' . $mobileRatio . ']');
+        error_log('Begin process file : [' . $out . ',' . $page . ',' . $format . ',' . ($transparent ? 'transparent' : 'opaque') . ',' . $resolution . ',' . $quality . ',' . ($withGraphics ? 'graphics' : 'no graphics') . ',' . ($withTexts ? 'texts' : 'no texts') . ',' . $resolutionRatio . '|' . $mobileRatio . ']');
 
         if (stristr($out, 'usstorage')) {
             $this->setRegion('US');
@@ -42,7 +43,7 @@ class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile
         $this->setResolutionRatio($resolutionRatio);
         $this->setMobileRatio($mobileRatio);
         $this->setQuality($quality);
-        parent::__construct($format, $resolution, $quality, $withGraphics, $withTexts, $version);
+        parent::__construct($format, $resolution, $quality, $withGraphics, $withTexts, $transparent, $version);
     }
 
     /**
@@ -179,6 +180,7 @@ class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile
         return 0;
     }
 
+
     /**
      * @return string
      * @throws \Exception