From: Vincent Vanwaelscappel Date: Tue, 18 Feb 2025 18:44:19 +0000 (+0100) Subject: #7340 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9a54ed91a25c365debaed4e15ceb433779be6477;p=fluidbook_processfarm.git #7340 @1 --- diff --git a/app/src/ProcessFile.php b/app/src/ProcessFile.php index 1c72183..a1c236d 100644 --- a/app/src/ProcessFile.php +++ b/app/src/ProcessFile.php @@ -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