NonconformingDrawingPrimitiveDefinition when trying to draw text on Linux
See original GitHub issueHello,
I’ve been trying to port my code that runs perfectly well on Windows to Linux (Ubuntu 16.04) but I keep being blocked by errors when trying to draw text.
After setting FONTCONFIG_PATH with export FONTCONFIG_PATH=/usr/share/fonts
I managed to get rid of a Fontconfig error: Cannot load default config file
error but now I’m stuck with the following error
ImageMagick.MagickDrawErrorException: NonconformingDrawingPrimitiveDefinition `text' @ error/draw.c/DrawImage/4287
at ImageMagick.MagickExceptionHelper.Check(IntPtr exception)
at ImageMagick.DrawingWand.NativeDrawingWand.Render()
at ImageMagick.MagickImage.Draw(IEnumerable`1 drawables)
at ImageMagick.Drawables.Draw(IMagickImage image)
at DiscordBot.Services.UserService.<GenerateProfileCard>d__41.MoveNext() in /home/discordbot/Services/UserService.cs:line 421
I tried everything I could think of, published with linux-x64 like talked about here #215, manually built a version of fontconfig, but nothing seems to work.
Thanks in advance if you have any idea how to fix this issue !
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How do I deal with non-conforming drawing primitive ...
This script works fine if the text in the file does not have spacing in it. Spacing is an issue, e.g. when the...
Read more >Issues
Hello, I am using php 7 and nginx in Ubuntu. I am getting such an error. non-conforming drawing primitive definition `text' @ error/draw.c/ ......
Read more >Non-conforming drawing primitive definition error
I am sure that image files are there in directories in the command line. I just fail to see how I should be...
Read more >Adding multiple text lines with 'convert'
I'm trying to place multiple lines of text on an image, but the following produces the following error: convert convert: Non-conforming drawing ...
Read more >How to convert the svg outcome to png?
convert : non-conforming drawing primitive definition `,' @ error/draw.c/RenderMVGContent/4430. and it is the png file. enter image description ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The link has been fixed and I am happy to hear that you figured out how to resolve this. And thanks for adding the explanation for future visitors.
Will update the link to that file later tonight. With the current build I now do this: https://github.com/dlemstra/Magick.NET/blob/cf5c133f92818f0dabe63397db08a23fe6275b9c/build/linux/install.dependencies.sh.