Skip to content

support for rasterizing svg #333

Open

Description

@u0nel

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

Activity

  1. davidp94 commented on Mar 15, 2022

    @davidp94

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

  2. willnorris commented on Mar 15, 2022

    @willnorris
    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?

  3. cmahlert commented on Apr 11, 2022

    @cmahlert

    Hi @willnorris,

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

  4. changed the title [-]support for svg[/-] [+]support for rasterizing svg[/+] on Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions