diff --git a/lib/WebGUI/Storage.pm b/lib/WebGUI/Storage.pm index fca530812..e09004828 100644 --- a/lib/WebGUI/Storage.pm +++ b/lib/WebGUI/Storage.pm @@ -1231,6 +1231,7 @@ sub getSizeInPixels { $self->session->log->error("Can't check the size of something that's not an image."); return 0; } + my $image = Imager->new; $image->read(file => $self->getPath($filename)); return ($image->getwidth, $image->getheight); }