diff options
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index edf3965..63a9139 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -1180,9 +1180,9 @@ class PHPFSPOT { // If requested width is more then the actual image width, // do not generate a thumbnail, instead safe the original - // as thumbnail but with lower quality - - if($width >= $cur_width) { + // as thumbnail but with lower quality. But if the image + // is to heigh too, then we still have to resize it. + if($width >= $cur_width && $cur_height < $this->cfg->thumb_height) { $result = imagejpeg($src_img, $thumb_image, 75); imagedestroy($src_img); return true; |