How can I draw text with different stroke and fill colors on images with python?

后端 未结 6 604
忘了有多久
忘了有多久 2020-12-09 10:33

How can I draw text with different stroke and fill colors on images with python?

Here is some text with red stroke and gray fill.

6条回答
  •  难免孤独
    2020-12-09 11:12

    You can use Inkscape:

    import subprocess
    subprocess.call("inkscape in.svg --export-text-to-path --export-plain-svg out.svg", shell = True)
    

    note: you have to download Inkscape to use this, so not practical for permanent use

提交回复
热议问题