Beispiel #1
0
 public function testResize()
 {
     $source = fopen("{$this->_files}/image_landscape.png", 'r');
     $subject = new Imagick($source);
     // original size is 400x200
     $result = $subject->resize(100, 50);
     $this->assertTrue($result);
     $this->assertEquals(100, $subject->width());
     $this->assertEquals(50, $subject->height());
 }