Page 1 of 1

Strange Problem - Stroke is cut on half text

Posted: 2019-03-21T01:06:31-07:00
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

Re: Strange Problem - Stroke is cut on half text

Posted: 2019-03-21T06:18:05-07:00
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.

Re: Strange Problem - Stroke is cut on half text

Posted: 2019-03-22T01:31:20-07:00
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

Re: Strange Problem - Stroke is cut on half text

Posted: 2019-03-22T03:05:18-07:00
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.

Re: Strange Problem - Stroke is cut on half text

Posted: 2019-03-22T09:43:53-07:00
by fmw42
Check your version of Freetype and be sure it is current.

Re: Strange Problem - Stroke is cut on half text

Posted: 2019-03-22T11:52:19-07:00
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.

Re: Strange Problem - Stroke is cut on half text

Posted: 2019-03-22T16:05:56-07:00
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?

Re: Strange Problem - Stroke is cut on half text

Posted: 2019-03-23T00:52:22-07:00
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?

Re: Strange Problem - Stroke is cut on half text

Posted: 2019-03-23T10:06:05-07:00
by fmw42
What platform? How did you install ImageMagick and the delegates before. Sorry, I only know how to install delegates with Mac Ports.