Fixed resize bug in fileImport.pl where vertical images would not be resized.
This commit is contained in:
parent
d94ca33474
commit
52ebd6eece
2 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue