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

@ -6,6 +6,7 @@
thumbnails for images without thumbnails. (perlDreamer Consulting, LLC) thumbnails for images without thumbnails. (perlDreamer Consulting, LLC)
- fix: Database Connetion for ODBC fails for lengthy strings (thanks to Isaac - fix: Database Connetion for ODBC fails for lengthy strings (thanks to Isaac
Finegan, Core Mobility) Finegan, Core Mobility)
- fix: the fileImport script did not resize vertical images. (Martin Kamerbeek / Oqapi)
7.3.11 7.3.11
- Added an option for enabling coverage tests to testCodebase.pl. - Added an option for enabling coverage tests to testCodebase.pl.

View file

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