public function getAspectRatio() { $ratio = parent::getAspectRatio(); if (!empty($this->interfaceObj[0])) { list($width, $height) = explode('x', $this->interfaceObj[0]); } if (!empty($width) && !empty($height)) { $ratio = $width / $height; } return $ratio; }