Closed rraadd88 closed 5 years ago
Can you try this?
draw_image(image_read_svg('test.svg', width = 400), scale = 1)
In any case, this is almost certainly a magick bug, not a cowplot bug. cowplot just dispatches to magick for image handling.
Thank you for the quick response. I tried and it worked but the svg is rasterized. :/
I wanted to import svgs as vector graphics just as in the demo.
Anyways, since its an issue with the magick
dependency, you may close the issue. If I find any fix/workaround, I'll post later.
Thank you for your time.
Since this is using the magick library underneath, the image is getting rasterized one way or another. Better you rasterize explicitly, at a resolution that works for you.
Hi, @clauswilke,
Is it possible to embed svg image without rasterization, and keep the imported image in vector format?
Hi, Description: I am trying to include some svgs (made in python) into a multi-panel figure using
cowplot
. First I tried the demo code to import tiger.svg, it works well. However, interestingly, there is a 'core dumped' error when I try to import my svg. Lot of memory is free and the svg I am trying to import is fairly small (zip). So, I wonder if there any bug or some types of svgs are incompatible.Demo code works.
But not with my svg (zip).
The issue is with the
draw_image
command.I am using R from anaconda environment on Ubuntu 16.04.
Also, additional information (may lead to possible solution),
I tried
image_read_svg
and it worked without error. So may be there is some issue withdraw_image
(?).Is there any workaround?