From 8fc7f5f8a10866f6eb46ed8116bc146352df735d Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Tue, 21 Sep 2021 01:41:29 +0200 Subject: [PATCH] =?UTF-8?q?Param=C3=A8trage=20conversion=20en=20svg=20d'un?= =?UTF-8?q?e=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index d33c7b3..c91bf95 100644 --- a/index.php +++ b/index.php @@ -82,7 +82,7 @@ $f3->route('POST /image2svg', } shell_exec(sprintf("convert -background white -flatten %s %s", $imageFile, $imageFile.".bmp")); - shell_exec(sprintf("mkbitmap %s -o %s", $imageFile.".bmp", $imageFile.".bpm")); + shell_exec(sprintf("mkbitmap -x -f 8 %s -o %s", $imageFile.".bmp", $imageFile.".bpm")); shell_exec(sprintf("potrace --svg %s -o %s", $imageFile.".bpm", $imageFile.".svg")); header('Content-Type: image/svg+xml');