Skip to content
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

support for svg #333

Open
u0nel opened this issue Feb 1, 2022 · 3 comments
Open

support for svg #333

u0nel opened this issue Feb 1, 2022 · 3 comments

Comments

@u0nel
Copy link

u0nel commented Feb 1, 2022

As svgs images aren't bitmaps imageproxy could either convert svgs to bitmaps and output the result. I found this snippet which does that.

The other option would be to do all transformations as svg, which I think is possible with github.com/ajstarks/svgo

@davidp94
Copy link

davidp94 commented Mar 15, 2022

@willnorris any ETA for this feature? happy to provide sponsorship

@willnorris
Copy link
Owner

I don't have any plan to implement this myself, so can't really give an ETA. Someone that is sufficiently interested would need to do the work.

However, I'm honestly not sure I'd accept the patch upstream, since it looks like it would require additional dependencies and I don't entirely understand the utility of this. SVGs are already infinitely resizable (and almost always smaller file size), and if displayed on the web, then CSS transforms should be able to do most everything imageproxy can do. So what's the use case of rasterizing an SVG? I guess for display in applications or contexts that don't natively support SVG?

@cmahlert
Copy link

Hi @willnorris,

"contexts that don't natively support SVG" -> that's it in my case. I would like to transform SVGs to PNGs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants