resvg-js icon indicating copy to clipboard operation
resvg-js copied to clipboard

feat: add API for returning PNG pixel data

Open yisibl opened this issue 2 years ago • 1 comments

yisibl avatar Jun 24 '22 05:06 yisibl

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
resvg-js ✅ Ready (Inspect) Visit Preview Nov 15, 2022 at 3:49AM (UTC)

vercel[bot] avatar Jun 24 '22 05:06 vercel[bot]

Is there any help that one can provide to get this PR merged?

jstarpl avatar Nov 14 '22 14:11 jstarpl

It would be better if renamed as pixels

zimond avatar Nov 15 '22 02:11 zimond

@jstarpl Now I have finished this PR.

By the way, what is your usage scenario for this API?

yisibl avatar Nov 15 '22 03:11 yisibl

It would be better if renamed as pixels

Thanks, is done.

yisibl avatar Nov 15 '22 03:11 yisibl

@jstarpl Now I have finished this PR.

By the way, what is your usage scenario for this API?

I was hoping to use it to render UI SVGs to pipe them to a Stream Deck display and that accepts an RGB blob, so going through encoding+decoding a PNG is an unnecessary step.

jstarpl avatar Nov 15 '22 19:11 jstarpl