Commit 72d80d20 authored by Steven Wittens's avatar Steven Wittens
Browse files

#101970: image_scale() should not scale to identical sizes

parent 293b12cc
......@@ -117,7 +117,7 @@ function image_scale($source, $destination, $width, $height) {
$info = image_get_info($source);
// don't scale up
if ($width > $info['width'] && $height > $info['height']) {
if ($width >= $info['width'] && $height >= $info['height']) {
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment