mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
sign color: Flattened the signature svg so that color change is possible with fill
This commit is contained in:
parent
83d95ed2e9
commit
e19832adb0
1 changed files with 1 additions and 1 deletions
2
app.php
2
app.php
|
|
@ -174,7 +174,7 @@ $f3->route('POST /image2svg',
|
|||
|
||||
shell_exec(sprintf("convert -background white -flatten %s %s", $imageFile, $imageFile.".bmp"));
|
||||
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"));
|
||||
shell_exec(sprintf("potrace --flat --svg %s -o %s", $imageFile.".bpm", $imageFile.".svg"));
|
||||
|
||||
header('Content-Type: image/svg+xml');
|
||||
echo file_get_contents($imageFile.".svg");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue