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');
$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);
}
/**
return 0;
}
+
/**
* @return string
* @throws \Exception