question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SVG support on Mac (without Inkscape) does not work

See original GitHub issue

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:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
dlemstracommented, Nov 20, 2020

I have no idea if they do but I am happy that you got your issue resolved.

1reaction
dlemstracommented, Nov 16, 2020

The fix for fontconfig appears to be setting the font directory. In the next release you will be able to do this MagickNET.SetFontConfigDirectory("/opt/X11/lib/X11/fontconfig"); You should do this call before you call any other Magick.NET methods.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVG compatibility with Mac and Windows
Hello,. I would like to sell my vector files in SVG, DXF, and EPS format, but I am uncertain if they will be...
Read more >
macOS Mojave doesn't display .SVGs in preview
I recently updated to macOS Mojave and it seems it doesn't generate previews to any of the .SVGs I am working with. For...
Read more >
.svg file created in Inkscape failing to open. Can someone ...
I have created and been editing an . svg file in inkscape and then one day it said "Failed to open from [location...
Read more >
Can not open svg file on Mac - InkscapeForum.com
Sorry for stupid questions. I'm new to Inkscape and am working with Image for a few days. Go to the morning office and...
Read more >
Mac IOS Catalina Issues? Can't access Inkscape after new ...
I was able to download the beta on my iMac (with Catalina) and have been using Inkscape without a problem. I did have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found