add comment to clarify why generateThumbnail is used instead of resize while processing uploaded images
This commit is contained in:
parent
76536e8cf0
commit
858acf5bae
1 changed files with 2 additions and 0 deletions
|
|
@ -770,6 +770,8 @@ sub postProcess {
|
|||
my $storage = $self->getStorageLocation;
|
||||
foreach my $file (@{$storage->getFiles}) {
|
||||
if ($storage->isImage($file)) {
|
||||
##Use generateThumbnail to shrink size to site's max image size
|
||||
##We should look into using the new resize method instead.
|
||||
$storage->generateThumbnail($file,$self->session->setting->get("maxImageSize"));
|
||||
$storage->deleteFile($file);
|
||||
$storage->renameFile('thumb-'.$file,$file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue