Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I currently load SVGs on the UI thread, draw them on a canvas, and then use `createImageBitmap()` to convert the canvas into an ImageBitmap, which I send back to the web worker. This method allows for scalable vector assets to be rasterized on-demand, even at high resolutions like retina, maintaining quality comparable to the browser's rasterizer. Third-party libraries didn't offer consistent or satisfactory results.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: