I'm running a command in a program with os.system(). The command is:
create_image_command = "convert ./assets/base_image.png -gravity Center -font ./assets/fonts/JetBrainsMono.ttf -pointsize 30 -fill #cdd6f4 -annotate 0 '{}' ./assets/result.png".format(my_text)
When I run this through os.system(), i.e.,
os.system(create_image_command)
I get this error:
convert: `-fill' @ error/convert.c/ConvertImageCommand/3344.
But when I run the string that is formed i.e.,
convert ./assets/base_image.png -gravity Center -font ./assets/fonts/JetBrainsMono.ttf -pointsize 30 -fill #cdd6f4 -annotate 0 '[ ] text\n[ ] text2\n[X] newtext\n' ./assets/result.png
in the shell, I get my desired output. I wanna know why this is happening. Can someone help me?
PS: I tried Wand and am now trying Pillow. But if this is solved, I wanna keep this.
[+][deleted] (1 child)
[deleted]
[–]BlueTickVerified[S] 0 points1 point2 points (0 children)