-
Notifications
You must be signed in to change notification settings - Fork 164
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
Add SVG support #53
Comments
What about librsvg? |
@cloud-walker It relies on the librsvg package from Brew / Yum / Apt-Get. The solution needs to be 100% JS. Good find though, probably the closest solution thus far. |
No luck so far :( |
Would installing optional (native) dependencies be acceptable? |
@langri-sha possibly, what do you have in mind? |
Well, I'm just assuming there is a sizable portion of users which already have their logo vectors provided in SVG, who are then exporting a PNG to be able to use the package and if perhaps compromising with an optional dependency might be permissive. |
@langri-sha I love the look of that module but it definitely requires the native deps. I want to compromise but Google's planning on using this for WSK and their main issue was with native deps. Plus, I'm aiming for a pure JS build system hence the switch to Jimp. |
Documented in the README for now, we'll come back to this when possible. |
Update: If you're using Gulp, you can pipe from |
Why is a pure JavaScript solution for SVG rendering required? |
Weird thing, in my machine Ubuntu 15.10 with Node 6.6.0 e npm 3.10.3 it works when I use an SVG image. The only diff between these machines is the Ubuntu version. |
@haydenbleasel: Native JavaScript SVG solution, seems also be usable with nodejs (server side): https://github.com/canvg/canvg - so this would finally be possible 😄 . |
@strarsis you would need node-canvas for that, which uses native package cairo |
What about sharp?
|
What about this? https://github.com/neocotic/convert-svg |
@Hypnosphi It appears that as of #221 Sharp is now used. |
So if sharp is now used, what is the status of
|
SVG support can be easily implemented if we find a pure-JS Node library that handles SVG to PNG conversion with no external dependencies.
The text was updated successfully, but these errors were encountered: