protected $force = false;
protected $mobileRatio = 1;
protected $resolutionRatio = 1;
+
+ protected $quality = 85;
protected $filespath;
protected $_job = null;
$this->setForce(!!$force);
$this->setResolutionRatio($resolutionRatio);
$this->setMobileRatio($mobileRatio);
- parent::__construct($format, $resolution, $withGraphics, $withTexts, $version);
+ $this->setQuality($quality);
+ parent::__construct($format, $resolution, $quality, $withGraphics, $withTexts, $version);
}
/**
return $res;
}
+ /**
+ * @return int
+ */
+ public function getQuality(): int {
+ return $this->quality;
+ }
+
+ public function setQuality(int $quality): void {
+ parent::setQuality(min(100, max(0, $quality))); // TODO: Change the autogenerated stub
+ }
+
}
\ No newline at end of file