/**
* 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;
}