Actually, on can convert base64 to all kind of images (png,svg ...), but how to convert base64, png, svg to tikz now ?

There is no command to my knowledge that allows to embed base64 without running external command base64-d with --shell escape option. So the neetest option would be to have a method to convert images to tikz.

Inkscape add on to convert images to tikz does not work anymore with new versions of inkscape.

  • 2
    I don't really understand your last paragraph. Inkscape uses svg2tikz to convert images to tikz. This works still fine with the current version of inkscape. – user36296 Sep 18 '18 at 14:41
  • 1
    If you want to display base64 images, have a look at ctan.org/pkg/inline-images?lang=en – user36296 Sep 18 '18 at 14:43
  • Such a thing could be implemented in Lua, perhaps. – AlexG Sep 18 '18 at 14:49
  • @sam this package uses an external tool, hence requires --shell-escape. – AlexG Sep 18 '18 at 14:50

thank you for your comments.

So for svg2tikz, the main [https://github.com/kjellmf/svg2tikz][https://github.com/kjellmf/svg2tikz], package is not maintained but there is a pull request that works.

I could run

wget https://rviews.rstudio.com/css/images/rstudio.svg
pip install git+git://github.com/kjellmf/svg2tikz --user
svg2tikz --figonly rstudio.svg

For base64 to svg, I found it here:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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