diff --git a/lib/WebGUI/Storage.pm b/lib/WebGUI/Storage.pm index e09004828..c4e16ef7e 100644 --- a/lib/WebGUI/Storage.pm +++ b/lib/WebGUI/Storage.pm @@ -1612,7 +1612,7 @@ sub resize { $width = $height * $x / $y; } $self->session->errorHandler->info( "Resizing $filename to w:$width h:$height" ); - $image = $image->scale(xpixels => $n, ypixels => $n, type => 'nonprop') + $image = $image->scale(xpixels => $width, ypixels => $height, type => 'nonprop') or die $image->errstr; }