Paramètrage conversion en svg d'une image

This commit is contained in:
Vincent LAURENT 2021-09-21 01:41:29 +02:00
parent ec11a59db1
commit 8fc7f5f8a1
1 changed files with 1 additions and 1 deletions

View File

@ -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');