I can’t seem to control font size, background and fill.
command 1:
convert \
testimage.jpg \
label:'Days: 0' \
-background Black \
-fill White \
-pointsize 1 \
-gravity center \
-append \
days_1.jpg
image:

command 2:
convert \
testimage.jpg \
label:'Days: 0' \
-background White \
-fill Black \
-pointsize 48 \
-gravity center \
-append \
days_2.jpg

You didn’t do it right 🙂
You seem to misunderstand the meaning of
-label.See what the official docu has to say about
-label:Try this command:
and you should get this result:
Remember these rules when using
-draw:(my emphasis)
Alternatively to
-drawyou can also use-annotateto put text into an image. (However,-annotateuses a slightly different syntax, which you can easily read up about.)Update
Why didn’t you take my hint about the order of the options?!?
Try this command:
and you’ll get:
Remember, your
-appenddoes concatenate 2 different images:-background ... -fill ... -pointsize ... -label ....Concatenation with
-appenddoes not support-gravity center. This option would only make sense if you had also defined a canvas size for your second picture with-size, but you haven’t.In the absence of a pre-defined canvas size, the
-labeloperation will auto-create one that is just big enough to hold the text string. You can verify this behavior with this command:Your attempt to use
-gravity centerled me to believe you wanted the text to appear somewhere in the middle of the original input image. Hence my pointing to-drawand-annotate.