Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optional backend for SVG drawing? #14

Closed
paskn opened this issue Aug 12, 2023 · 1 comment
Closed

optional backend for SVG drawing? #14

paskn opened this issue Aug 12, 2023 · 1 comment

Comments

@paskn
Copy link

paskn commented Aug 12, 2023

Hi!

Is it possible to use something else for drawing SVG? Or not drawing it at all?

org-timeblock shows me the current date and an empty buffer. It reports no error with toggle-debug-on-error. I've looked at my ImageMagick configuration and how to fix it. Could not find a quick solution and decided to ask here for a tip.

Here's what org-timeblock puts in the message buffer:

Type C-c C-c or C-c C-x to view the image as text or hex.
ImageMagick error: NoDecodeDelegateForThisImageFormat `SVG' @ error/blob.c/BlobToImage/460 [9 times]
QuitImageMagick error: NoDecodeDelegateForThisImageFormat `SVG' @ error/blob.c/BlobToImage/460
ImageMagick error: NoDecodeDelegateForThisImageFormat `SVG' @ error/blob.c/BlobToImage/460

My Emacs build:

(system-configuration-features)
"ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB"

Thanks!

@paskn
Copy link
Author

paskn commented Aug 13, 2023

So, the problem is:
On macOS, Emacs is built with ImageMagick support, but ImageMagick is not built with SVG support. The likely reason for the latter is that you installed ImageMagick with Homebrew.

To solve it, you might attempt compiling ImageMagick from source. But this is a dependency nightmare on macOS, as I learned. A simpler solution is to use mac ports:

sudo port install ImageMagick +rsvg

@paskn paskn closed this as completed Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant