add comment to clarify why generateThumbnail is used instead of resize while processing uploaded images

This commit is contained in:
Colin Kuskie 2006-09-18 22:51:17 +00:00
parent 76536e8cf0
commit 858acf5bae

View file

@ -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);