From 3e99b0178f619a75441bdc5c851768ec815e90c8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 30 May 2005 07:21:10 +0000 Subject: [PATCH] * (bug 2267) Don't generate thumbnail at the same size as the source image. --- RELEASE-NOTES | 1 + includes/Image.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 083f8617bd..a21567426b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -222,6 +222,7 @@ Various bugfixes, small features, and a few experimental things: * Simple rate limiter for edits and page moves; set $wgRateLimits (somewhat experimental; currently needs memcached) * (bug 2262) Hide math preferences when TeX is not enabled +* (bug 2267) Don't generate thumbnail at the same size as the source image. === Caveats === diff --git a/includes/Image.php b/includes/Image.php index e93d669d36..3194ab2b0b 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -907,7 +907,7 @@ class Image return null; } - if( $width > $this->width && !$this->mustRender() ) { + if( $width >= $this->width && !$this->mustRender() ) { # Don't make an image bigger than the source return new ThumbnailImage( $this->getViewURL(), $this->getWidth(), $this->getHeight() ); } -- 2.20.1