Beispiel #1
0
 public function testPassthru()
 {
     $source = fopen("{$this->_files}/image_png.png", 'r');
     $target = fopen('php://temp', 'wb');
     $subject = new Imagick($source);
     $subject->passthru('setFormat', 'jpeg');
     $result = $subject->store($target);
     $this->assertTrue($result);
     $this->assertEquals('image/jpeg', Type::guessType($target));
     fclose($source);
     fclose($target);
 }