Magick.NET: SVG support on Mac (without Inkscape) does not work
Prerequisites
- I have written a descriptive issue title
- I have verified that I am using the latest version of Magick.NET
- I have searched open and closed issues to ensure it has not already been reported
Description
On macOS my code never returns from the following line:
ImageMagick.MagickImage img = new ImageMagick.MagickImage(imgBytes);
where imgBytes is the byte array with my svg image (note that on Windows it works)
I haven’t installed Inkscape nor RSVG but I read that it should work also without these two software.
Am I correct?
System Configuration
- Magick.NET version: 7.17.0.1
- Environment (Operating system, version and so on): macOS 10.13.6
- Additional information:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (11 by maintainers)
I have no idea if they do but I am happy that you got your issue resolved.
The fix for
fontconfig
appears to be setting the font directory. In the next release you will be able to do thisMagickNET.SetFontConfigDirectory("/opt/X11/lib/X11/fontconfig");
You should do this call before you call any other Magick.NET methods.It is also possible that you can get some information from the detailed debug logging: https://github.com/dlemstra/Magick.NET/blob/1dd29b578b89cab1ff04b74cfb5c0e1aa2e73cbe/docs/DetailedDebugInformation.md