Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8518625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:01:57+00:00 2026-06-11T06:01:57+00:00

I can’t seem to control font size, background and fill. command 1: convert \

  • 0

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:

enter image description here

command 2:

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

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:01:59+00:00Added an answer on June 11, 2026 at 6:01 am

    You didn’t do it right 🙂

    You seem to misunderstand the meaning of -label.

    See what the official docu has to say about -label:

    A label is not drawn on the image, but is embedded in the image datastream via Label tag or similar mechanism. If you want the label to be visible on the image itself, use the -draw option…

    Try this command:

    convert                               \
       https://i.stack.imgur.com/FoTPN.jpg \
      -pointsize 48                       \
      -fill green                         \
      -gravity center                     \
      -draw "text 100,-200 'Day: 0'"      \
       so-12359743-labelled.png
    

    and you should get this result:

    resulting image

    Remember these rules when using -draw:

    You can set the primitive color, font, and font bounding box color with -fill, -font, and -box respectively. Options are processed in command line order so be sure to use these options before the -draw option.

    (my emphasis)

    Alternatively to -draw you can also use -annotate to put text into an image. (However, -annotate uses 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:

    convert                               \
       https://i.stack.imgur.com/h2Exm.jpg \
      -background White                   \
      -fill Black                         \
      -pointsize 48                       \
      -gravity center                     \
       label:'Days: 0'                    \
      -append                             \
       days_2.jpg
    

    and you’ll get:

    result with '-append'

    Remember, your -append does concatenate 2 different images:

    1. The first one is your original input image.
    2. The second one is freshly created with -background ... -fill ... -pointsize ... -label ....

    Concatenation with -append does 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 -label operation will auto-create one that is just big enough to hold the text string. You can verify this behavior with this command:

    convert                               \
       https://i.stack.imgur.com/h2Exm.jpg \
      -background White                   \
      -fill Black                         \
      -pointsize 48                       \
      -gravity center                     \
       label:'abcdefghijklmnopqrstuvwxyz' \
      -append                             \
       days_3.jpg
    

    Your attempt to use -gravity center led me to believe you wanted the text to appear somewhere in the middle of the original input image. Hence my pointing to -draw and -annotate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I run this in a Windows command prompt like I can run it
Can't seem to figure out what's wrong with the simple getJSON call below. It's
can anyone tell me if it is possible to convert a dojo charting object
Can I somehow see the types and size of the contents of a tuple?
Can someone help me with a command line instruction to drop a single MAMP
Can anyone let me know how can we change the value of kendo combobox
Can I order my users in the database, so I don't have to say
Can I change the field public virtual ClassOne ClassOne { get; set; } to
Can I authenticate with just Google account username and password instead of using OAuth?
Can any one tell, how to get the result of LINQ query contains group

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.