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

  • SEARCH
  • Home
  • 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 8915925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:06:07+00:00 2026-06-15T05:06:07+00:00

I am trying to overlay two texts (one is larger and and a different

  • 0

I am trying to overlay two texts (one is larger and and a different color, which would end up being the stroke) ontop of an image, but what I get ends up being a messed up result.

I am using

convert front2.jpg 
\( -pointsize 90 -font Helvetica-Narrow-Bold -fill black -background none -stroke black -strokewidth 15 label:"Hello World World" -virtual-pixel transparent -distort arc 160 \) -gravity north -geometry +0+12 -compose over -composite front5.jpg 
\( -pointsize 90 -font Helvetica-Narrow-Bold -fill white -stroke none -background none label:"Hello World World" -virtual-pixel transparent -distort arc 160 \) -gravity north -geometry +0+10 -compose over -composite front5.jpg

How can I do this and get the right result?

  • 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-15T05:06:09+00:00Added an answer on June 15, 2026 at 5:06 am

    I have just realised I missread your post; these examples will create a drop shadow effect. Whatever I try I can not get -stroke to work!
    UPDATE – stroke will work but not on my local setup; the last example has stroke.

    This works for me but is quite slow:

    exec("convert image.jpg -thumbnail 800x800 temp.png");
    
    $cmd = " temp.png \( -pointsize 90 -font Helvetica-Narrow-Bold -fill black -background none label:\"Hello World World\" -virtual-pixel transparent -distort arc 160 \) ".
    " -gravity north -geometry +0+12 -compose over -composite  ".
    " \( -pointsize 90 -font Helvetica-Narrow-Bold -fill white -background none label:\"Hello World World\" -virtual-pixel transparent -distort arc 160 \) ".
    " -gravity north -geometry +0+10 -composite ";
    
    exec("convert $cmd text_circle.png"); 
    

    This is completed in half the time but has a problem that the text is larger than the image! Doing some calculations to reduce $size[0] and $size[1] would overcome that.

    $size = getimagesize("temp.png");
    $cmd = " temp.png \( \( -size $size[0]x$size[1] xc:none -fill black -font Helvetica-Narrow-Bold -pointsize 90 -stroke black -strokewidth 4 -gravity north -annotate +0+0 \"Hello World World\" -font Helvetica-Narrow-Bold -fill white -annotate +3+3 \"Hello World World\" \) -virtual-pixel transparent -distort arc 160 \) ".
    " -composite ";
    exec("convert $cmd text_circle1.png"); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to overlay one image on top of another onto a simple quad.
I have two graphs and I am trying to overlay one on top of
I'm trying to combine two photos into one image (think a body with a
I am trying to merge two examples from the ApiDemos so one overlay over
I am trying to overlay several images on top of one another within an
So I'm trying to overlay a map image with a transparent ninepatch Drawable using
I'm trying to make an overlay with thickbox... it only allows one line captions...
I am trying to overlay two images in my app, but they seem to
I am trying to compare two images to assess their registration. I would like
I'm trying to superpose two GwtCanvas (which use an Html5 canvas). I am able

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.