Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I try to create an image with text and border around the image with a background texture. my problem is that the text is pasted to the edge to the left, and when I try to add a "space" before the text that is ignored but if I add a "space" in the end it works
tunezio wrote:You think that an update may fix the problem?
You should generally use the most recent version available if you can. But even with IM 7.0.2-10 on Windows 10 a space at the beginning of a label disappears. For this issue you may need to escape the space at the start of your label text. Something like...
tunezio wrote:I try to create an image with text and border around the image with a background texture. my problem is that the text is pasted to the edge to the left, and when I try to add a "space" before the text that is ignored but if I add a "space" in the end it works
This is an issue even with a current release ImageMagick 7.0.2-10 running on Windows 10 64. When I run this command to test several labels...
magick -pointsize 48 ^
label:"My Text 1 2 3" ^
label:" My Text 1 2 3 " ^
label:"\ My Text 1 2 3 " ^
label:" My Text 1 2 3 " ^
label:"\ My Text 1 2 3 " ^
-bordercolor gray -background gray -border 10x10 -append output.png
... you can see how all the spaces at the beginning of the text string in a "label" get removed if the first one isn't escaped with a backslash "\".
This may be a bug that needs to be addressed by the developers, or it may just be if a space is the first character in the "label" it needs to be escaped to make it work.