mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Paramètrage conversion en svg d'une image
This commit is contained in:
parent
ec11a59db1
commit
8fc7f5f8a1
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user