From 52ebd6eece0026fe534a8cd3704df3061bd35a4e Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Fri, 2 Mar 2007 13:47:26 +0000 Subject: [PATCH] Fixed resize bug in fileImport.pl where vertical images would not be resized. --- docs/changelog/7.x.x.txt | 1 + sbin/fileImport.pl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 819f16232..4c860926f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -6,6 +6,7 @@ thumbnails for images without thumbnails. (perlDreamer Consulting, LLC) - fix: Database Connetion for ODBC fails for lengthy strings (thanks to Isaac Finegan, Core Mobility) + - fix: the fileImport script did not resize vertical images. (Martin Kamerbeek / Oqapi) 7.3.11 - Added an option for enabling coverage tests to testCodebase.pl. diff --git a/sbin/fileImport.pl b/sbin/fileImport.pl index 1f179c13a..0a4a4ad32 100644 --- a/sbin/fileImport.pl +++ b/sbin/fileImport.pl @@ -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));