setQuality() public method

Set the image quality.
public setQuality ( integer $q = null ) : Imagick
$q integer
return Imagick
Esempio n. 1
0
 public function testPng()
 {
     $i = new Imagick(__DIR__ . '/../tmp/test.png');
     $i->setQuality(75)->setOpacity(50)->setCompression(50)->setFilter(\Imagick::FILTER_BESSEL)->setBlur(2)->setOverlay(__DIR__ . '/../tmp/test.png')->resizeToWidth(240);
     $this->assertEquals(240, $i->getWidth());
 }