Skip to content

discretize/svg2png-worker

 
 

Repository files navigation

svg2png-worker

svg2png-wasm demo with Cloudflare Workers.

Convert online svg to png.

Usage

https://svg2png-worker.ssssota.workers.dev/[svg url]

e.g.

https://svg2png-worker.ssssota.workers.dev/https://github.com/ssssota/svg2png-wasm/raw/main/logo.svg

options

svg2png-scale=N

e.g.

https://svg2png-worker.ssssota.workers.dev/https://github.com/ssssota/svg2png-wasm/raw/main/logo.svg?svg2png-scale=10

svg2png-background=COLOR

e.g.

https://svg2png-worker.ssssota.workers.dev/https://github.com/ssssota/svg2png-wasm/raw/main/logo.svg?svg2png-background=black

https://svg2png-worker.ssssota.workers.dev/https://github.com/ssssota/svg2png-wasm/raw/main/logo.svg?svg2png-background=rgba(127,127,127,0.5)

License

MIT

This project use resvg that project is licensed under the MPLv2.0. You can see resvg source from here.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.6%
  • JavaScript 19.4%