Jimp: SVG support

Created on 10 Apr 2016  路  12Comments  路  Source: oliver-moran/jimp

Is SVG support planned or was it left out on purpose? Just wondering as I'm looking into dropping node-gm in favour of a library that does not depend on external binaries.

Most helpful comment

Would love to have SVG support

All 12 comments

Jimp is bitmap based so no consideration was given to vector support. What kind of support do you have in mind?

Loading in an SVG, resize it and write it as PNG for example.

That sounds like something that would be in scope. If a pure JS library exists already then certainly we can integrate it.

馃憤

The only thing I can think of is rendering SVG to , but that would require an headless browser?

My feeling is that getting this off the ground would be a bigger job than this project has scope for. If anything every gets build be sure I'll integrate it here. But closing for now.

Would love to have SVG support

My feeling is that getting this off the ground would be a bigger job than this project has scope for. If anything every gets build be sure I'll integrate it here. But closing for now.

any interest in adding SVG support for jimp at this time?
i just started using jimp in a new project, and might be able to contribute a bit once I get a bit more familiar with the jimp API

thank you 馃槉

It's now 2020 and SVG is one of the most common image formats on the web. It would be nice if this was reopened and reconsidered.

Support depends entirely on finding an SVG library that decodes/encode to/from bitmap data. If this exists support should be easy. If it doesn't then you know why it currently isn't supported

@oliver-moran @hipstersmoothie Any update on SVG support? Because, if there is SVG support we can use open type fonts too

https://www.npmjs.com/package/opentype.js

Would the canvg library be sufficient to be able to import SVG?
https://github.com/canvg/canvg

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tonysamperi picture tonysamperi  路  15Comments

darkbob picture darkbob  路  15Comments

codan84 picture codan84  路  25Comments

marcolino picture marcolino  路  21Comments

mkondel picture mkondel  路  14Comments