Set the image quality based on the type of image.
public setQuality ( mixed $q = null ) : |
||
$q | mixed | |
Résultat |
public function testPng() { $i = new Gd(__DIR__ . '/../tmp/test.png'); $i->setQuality(75)->setOpacity(50)->resizeToWidth(240); $this->assertEquals(240, $i->getWidth()); }