Fixed resize bug in fileImport.pl where vertical images would not be resized.

This commit is contained in:
Martin Kamerbeek 2007-03-02 13:47:26 +00:00
parent d94ca33474
commit 52ebd6eece
2 changed files with 2 additions and 1 deletions

View file

@ -281,7 +281,7 @@ sub addFiles {
$newAsset->getStorageLocation->resize($filename, $maxImageSize);
}
elsif ($imgHeight > $maxImageSize) {
$newAsset->getStorageLocation->resize($filename, , $maxImageSize);
$newAsset->getStorageLocation->resize($filename, undef, $maxImageSize);
}
}
$newAsset->setSize($storage->getFileSize($filename));