output() публичный Метод

Outputs image to browser
public output ( string $image_type = null, integer $quality = null )
$image_type string
$quality integer
Пример #1
0
 public function testOutputPng()
 {
     $image = $this->createImage(200, 100, 'png');
     $resize = new ImageResize($image);
     ob_start();
     // supressing header errors
     @$resize->output();
     $image_contents = ob_get_clean();
     $info = finfo_open();
     $type = finfo_buffer($info, $image_contents, FILEINFO_MIME_TYPE);
     $this->assertEquals('image/png', $type);
 }