summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_graphics.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-11 01:04:10 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-11 01:04:10 -0800
commit84e08a62838b0299a5daa7c9cac4be3eca6d0cb1 (patch)
tree4fe4da9b04bc44caca0ece47cf300d2783de7004 /modules/gallery/helpers/gallery_graphics.php
parent5ac49d497f51a3828c1254b5024a4aa898f86530 (diff)
Don't resize if the target size is the same as the original. Fixes #1602.
Diffstat (limited to 'modules/gallery/helpers/gallery_graphics.php')
-rw-r--r--modules/gallery/helpers/gallery_graphics.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_graphics.php b/modules/gallery/helpers/gallery_graphics.php
index fca18076..4cd7143e 100644
--- a/modules/gallery/helpers/gallery_graphics.php
+++ b/modules/gallery/helpers/gallery_graphics.php
@@ -56,7 +56,7 @@ class gallery_graphics_Core {
}
$dims = getimagesize($input_file);
- if (max($dims[0], $dims[1]) < min($options["width"], $options["height"])) {
+ if (max($dims[0], $dims[1]) <= min($options["width"], $options["height"])) {
// Image would get upscaled; do nothing
copy($input_file, $output_file);
} else {