Hello!
Help me please!
I use next command:
convert -size 300x100 xc:lightblue -font '/var/www/photos/fonts/15516.ttf' -pointsize 50 -annotate +30+70 'Photo Long Text' -blur 0x4 -fill white -stroke black -annotate +25+65 'Photo Long Text' result.jpg
Result:
What's happing?
Version Convert:
Strange Problem - Stroke is cut on half text
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Strange Problem - Stroke is cut on half text
I suspect a problem in the font, with strokes. I suggest you find the minimum command that shows the problem. For example, remove the first annotate and blur. Try an annotate with fill but no stroke, then with stroke but no fill.
If this shows the font has a stroke problem, then the cure is to use a different font.
If this shows the font has a stroke problem, then the cure is to use a different font.
snibgo's IM pages: im.snibgo.com
Re: Strange Problem - Stroke is cut on half text
Thank you for answer!
I tried the minimum command without font like this:
convert -size 500x100 xc:lightblue -pointsize 50 -fill white -stroke black -annotate +25+65 'Photo Long Text' result_2.jpg
Result:
And witout Pointize:
convert -size 500x100 xc:lightblue -fill white -stroke black -annotate +25+65 'Photo Long Text' result_3.jpg
The font is small, but you can still see that the letter T without a stroke
I tried the minimum command without font like this:
convert -size 500x100 xc:lightblue -pointsize 50 -fill white -stroke black -annotate +25+65 'Photo Long Text' result_2.jpg
Result:
And witout Pointize:
convert -size 500x100 xc:lightblue -fill white -stroke black -annotate +25+65 'Photo Long Text' result_3.jpg
The font is small, but you can still see that the letter T without a stroke
Re: Strange Problem - Stroke is cut on half text
The conversions works for us meaning we get expected results (all text properly stroked). We're using ImageMagick 7.0.8-34 and 6.9.10-34, the latest IM releases.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Strange Problem - Stroke is cut on half text
Check your version of Freetype and be sure it is current.
Re: Strange Problem - Stroke is cut on half text
Yes, it looks like a bug of this version.
I tried it on another server with the 7th version and there is no such problem ...
Very sad.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Strange Problem - Stroke is cut on half text
Check your version of Freetype delegate.
TTF* TTF r-- TrueType font (Freetype 2.9.1)
Is it as current as mine above?
Code: Select all
convert -list format
Is it as current as mine above?
Re: Strange Problem - Stroke is cut on half text
You're right. I have an old version.fmw42 wrote: ↑2019-03-22T16:05:56-07:00 Check your version of Freetype delegate.
TTF* TTF r-- TrueType font (Freetype 2.9.1)Code: Select all
convert -list format
Is it as current as mine above?
TTF* TTF r-- TrueType font (Freetype 2.5.2)
Please, can you tell me how to upgrade to the latest?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Strange Problem - Stroke is cut on half text
What platform? How did you install ImageMagick and the delegates before. Sorry, I only know how to install delegates with Mac Ports.