Strange Problem - Stroke is cut on half text

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
AKapaceb
Posts: 8
Joined: 2019-03-21T00:52:55-07:00
Authentication code: 1152

Strange Problem - Stroke is cut on half text

Post by AKapaceb »

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:
Image

What's happing?

Version Convert:
Image
snibgo
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

Post by snibgo »

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.
snibgo's IM pages: im.snibgo.com
AKapaceb
Posts: 8
Joined: 2019-03-21T00:52:55-07:00
Authentication code: 1152

Re: Strange Problem - Stroke is cut on half text

Post by AKapaceb »

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:
Image

And witout Pointize:
convert -size 500x100 xc:lightblue -fill white -stroke black -annotate +25+65 'Photo Long Text' result_3.jpg

Image
The font is small, but you can still see that the letter T without a stroke
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Strange Problem - Stroke is cut on half text

Post by magick »

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.
User avatar
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

Post by fmw42 »

Check your version of Freetype and be sure it is current.
AKapaceb
Posts: 8
Joined: 2019-03-21T00:52:55-07:00
Authentication code: 1152

Re: Strange Problem - Stroke is cut on half text

Post by AKapaceb »

magick wrote: 2019-03-22T03:05:18-07:00 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.
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.
User avatar
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

Post by fmw42 »

Check your version of Freetype delegate.

Code: Select all

convert -list format
TTF* TTF r-- TrueType font (Freetype 2.9.1)

Is it as current as mine above?
AKapaceb
Posts: 8
Joined: 2019-03-21T00:52:55-07:00
Authentication code: 1152

Re: Strange Problem - Stroke is cut on half text

Post by AKapaceb »

fmw42 wrote: 2019-03-22T16:05:56-07:00 Check your version of Freetype delegate.

Code: Select all

convert -list format
TTF* TTF r-- TrueType font (Freetype 2.9.1)

Is it as current as mine above?
You're right. I have an old version.

TTF* TTF r-- TrueType font (Freetype 2.5.2)

Please, can you tell me how to upgrade to the latest?
User avatar
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

Post by fmw42 »

What platform? How did you install ImageMagick and the delegates before. Sorry, I only know how to install delegates with Mac Ports.
Post Reply