For a few years Emacs has had SVG support, however I don't know of a reliable way to detect it, before using it.

How can we detect in EmacsLisp, SVG rendering ability in the current Emacs GUI (X/NS/Mac/Win etc.)

It's not sufficient to assume a GUI build has SVG support, as this is not always the case.

1 Answer 1


Maybe some clue in 'image.el'..

C-h v image-type-available-p

image-type-available-p is an autoloaded compiled Lisp function in `image.el'.

(image-type-available-p TYPE)

Return non-nil if image type TYPE is available. Image types are symbols like `xbm' or `jpeg'.

  • 2
    Specifically (image-type-available-p 'svg) - Thank you!
    – ocodo
    Commented Apr 25, 2015 at 2:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.