diff --git a/imageclass.php b/imageclass.php index 80f08d2..73d1070 100644 --- a/imageclass.php +++ b/imageclass.php @@ -81,11 +81,9 @@ public function __construct($storedfile, $gallery, $cm, $metadata = null, $thumb $this->storedfile->get_filename().'.png'); $this->thumburl->param('mtime', $this->storedfile->get_timemodified()); - if ($loadextrainfo) { - $imageinfo = $this->storedfile->get_imageinfo(); - $this->height = $imageinfo['height']; - $this->width = $imageinfo['width']; - } + $imageinfo = $this->storedfile->get_imageinfo(); + $this->height = $imageinfo['height']; + $this->width = $imageinfo['width']; $this->thumbnail = $thumbnail;