fixed: profile photos don't obey max image size

This commit is contained in:
Graham Knop 2008-03-28 19:55:03 +00:00
parent 221d5ac0aa
commit 53bdfda753
6 changed files with 15 additions and 8 deletions

View file

@ -74,8 +74,8 @@ sub applyConstraints {
$self->update({parameters=>$parameters.' alt="'.$self->get("title").'"'});
}
my $file = $self->get("filename");
$storage->adjustMaxImageSize($file);
$self->generateThumbnail($thumbnailSize);
$storage->adjustMaxImageSize($file, $maxImageSize);
$self->generateThumbnail($thumbnailSize);
$self->setSize;
}