public function getInfo() { return array('filename' => $this->_filename, 'width' => $this->_width, 'height' => $this->_height, 'mime' => $this->_mime, 'quality' => $this->_quality, 'exif' => $this->_exif, 'orient' => $this->_orient); }
public function testGetInfoGif() { $original = Helper::getOrig('butterfly.gif'); $img = new Image($original); $info = $img->getInfo(); is(478, $info['width']); is(640, $info['height']); is('image/gif', $info['mime']); is('portrait', $info['orient']); isEmpty($info['exif']); isTrue($img->isGif()); }