JBZoo\Image\Image::getInfo PHP Method

getInfo() public method

public getInfo ( ) : array
return array
    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);
    }

Usage Example

Beispiel #1
0
 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());
 }