thumb: jpeg encoding regardless of original
[minimedit.git] / thumb / index.php
index 2a8e30303f7abf9482dca27e6f57e5cf9110aa5d..24f46ccb97ab44ea5125c48d63dc18a03283d4bd 100644 (file)
@@ -91,7 +91,7 @@ function mkthumb_exec($source, $target, $width, $height)
                '-trim',
                '-resize', "${width}x${height}",
                '-quality', '90%',
-               $source, $target
+               $source, "jpg:$target"
        ]));
        $return = shell_exec("$cmd 2>&1");
        if ($return) {