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 8308099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:41:42+00:00 2026-06-08T18:41:42+00:00

I am generating some buttons using ImageMagick. However, I am not able to set

  • 0

I am generating some buttons using ImageMagick. However, I am not able to set the spacing between the letters in generated image. Command which I use:

convert -gravity center button_subscribeme.png -font /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf  -fill white -draw "text 0,0 'CLICK ME'"  -font_stretch 10  render/mailbox-submit.png

throws:

convert: unrecognized option `-font_stretch' @ error/convert.c/ConvertImageCommand/1561.

So I guess font_strech is not proper option. How I can achieve it? Generated text is too narrow.

  • 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-08T18:41:43+00:00Added an answer on June 8, 2026 at 6:41 pm

    There is no ImageMagick parameter named -font_stretch that I know of. However, there is -stretch.

    But I don’t think that -stretch really works with fonts. In any case, to find out what sort of values are possible, just run:

    convert -list stretch
    

    and see the result:

    Any
    Condensed
    Expanded
    ExtraCondensed
    ExtraExpanded
    Normal
    SemiCondensed
    SemiExpanded
    UltraCondensed
    UltraExpanded

    Use -kerning !

    Better use the -kerning commandline parameter. It takes positive as well as negative values:

    convert \
      in.png \
     -gravity center \
     -font "/Library/Fonts/Arial Bold.ttf" \
     -kerning -0.5 \
     -fill white \
     -draw "text 0,0 'CLICK ME'" \
      out1.png
    

    or

    convert \
      in.png \
     -gravity center \
     -font "/Library/Fonts/Arial Bold.ttf" \
     -kerning 1.5 \
     -fill white \
     -draw "text 0,0 'CLICK ME'" \
      out2.png
    

    Works for me on ImageMagick version 6.7.8-3 2012-07-19 on Mac:

    <code>-kerning -0.5</code> <code>-kerning 1.5</code>

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

Sidebar

Related Questions

I found some code for generating CSS3 buttons which I'm using on my site.
i am generating *.reg file using code which will have some important data. and
I am dynamically generating some radio buttons like this: degree_info.innerHTML += '<label for=radio>Current Work:</label>\
I'm generating some js output for each user using a template named example.js.erb .
I am generating some numbers (let's say, num ) and writing the numbers to
I am generating some PDFs with dompdf, which contains some text and images in
I'm generating some opcodes dynamically in a JIT compiler and I'm looking for guidelines
We have a web application that is generating some 3-5 parallel threads every five
I am having some problems generating a list for a class in Python. I
I have some records after SQL generating: YEARS MONTHS SUMMONTH SUMQUARTER QTR ----- ------

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.