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.
text in two line using fred's script
-
- Posts: 38
- Joined: 2010-12-14T03:56:10-07:00
- Authentication code: 8675308
- 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
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:
The successfulness of the result will likely depend upon the type of distortion.
- 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
Look like you need to use longer lines to handle the distortion
You could try adding a minimum radius.
You could try adding a minimum radius.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
-
- Posts: 38
- Joined: 2010-12-14T03:56:10-07:00
- Authentication code: 8675308
Re: text in two line using fred's script
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
Please Help me
- 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
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.
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.