public function getAspectRatio() { if ($this->info['height'] > 0) { return $this->info['width'] / $this->info['height']; } else { return 0; } }