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

Use a value of 0 for proportional resizing. E.g. for a 640 x 480 image, ->size(320, 0) yields a 320 x 240 thumbnail. Use a value of 'orig' to use an original image dimension. E.g. for a 640 x 480 image, ->resize(320, 'orig') yields a 320 x 480 thumbnail.
public resize ( $width, $height )
Пример #1
0
 public function testResize()
 {
     $commandSet = new CommandSet();
     $commandSet->resize(5, 6);
     $this->assertEquals(array('5x6'), $commandSet->toArray());
 }