text in two line using fred's script

A plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations.
Post Reply
ratneshsoni
Posts: 38
Joined: 2010-12-14T03:56:10-07:00
Authentication code: 8675308

text in two line using fred's script

Post by ratneshsoni »

i m using this code to genrate text with shape like arc.
/texteffect.sh -t "TEXT" -s outline -e arc-top -a 180 -f Arial -p 48 -c skyblue -b white -o black -l 1 -u lightpink
In this if user type text in two line then it is not generating image. This code works fine for single line text.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: text in two line using fred's script

Post by fmw42 »

ratneshsoni wrote:i m using this code to genrate text with shape like arc.
/texteffect.sh -t "TEXT" -s outline -e arc-top -a 180 -f Arial -p 48 -c skyblue -b white -o black -l 1 -u lightpink
In this if user type text in two line then it is not generating image. This code works fine for single line text.

My Texteffect script was designed to work only with one line of text! Sorry.

However, if I do the following as a test:


texteffect -t "Line1\nLine2" -s outline -e arc-top -a 180 -f Arial -p 48 -c skyblue -b white -o black -l 1 -u lightpink tmp.png


I get:

Image

The successfulness of the result will likely depend upon the type of distortion.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: text in two line using fred's script

Post by anthony »

Look like you need to use longer lines to handle the distortion :-)

You could try adding a minimum radius.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ratneshsoni
Posts: 38
Joined: 2010-12-14T03:56:10-07:00
Authentication code: 8675308

Re: text in two line using fred's script

Post by ratneshsoni »

one more thing in freds script how i will set align of text, like when text in two lines then second line text is align to center but i want it in left side. How is it is possible with freds script.
Please Help me
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: text in two line using fred's script

Post by fmw42 »

The script is designed to center all text. It is hardwired right now. It was never originially designed for multiple lines.

If you want to edit the script, then try changing all lines containing:

-gravity center -annotate

to

-gravity west -annotate

However, I make no guarantee that every style will still work as before.
Post Reply