thumb: only shrink larger images
[minimedit.git] / thumb / index.php
index 7de4f456939152bd931f61a15094b4a061ebbe08..bd08d8841497d266a1b573d172431f96981e2b0c 100644 (file)
@@ -99,7 +99,7 @@ function mkthumb_exec($source, $target, $width, $height)
                '-interlace', 'plane', # progressive
                '-strip', '-taint', # omit metadata
                '-sampling-factor', '4:2:0', '-colorspace', 'sRGB', # half chroma
-               '-resize', "${width}x${height}",
+               '-resize', "${width}x${height}>",
                '-quality', '85%',
                $source, "jpg:$target"
        ]));