FastImage::getSize PHP Method

getSize() public method

public getSize ( )
    public function getSize()
    {
        if (!$this->handle) {
            return false;
        }
        $this->strpos = 0;
        if ($this->getType()) {
            return array_values($this->parseSize());
        }
        return false;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Get image size
  *
  * @return array
  * @throws \Exception
  */
 public function getSize()
 {
     $result = $this->analyzer->getSize();
     if (!is_array($result)) {
         //            die('<pre>'.print_r($this->analyzer, true).'</pre>');
         throw new \Exception('Unable to get image size.');
     }
     return $result;
 }
All Usage Examples Of FastImage::getSize