# ! Rushabh | Linux Shill - @Mustafa7 can you tak... Channel: #contributor Source: https://discord.com/channels/1233487248129921135/1514548417907396750 Started: 2026-06-11T08:34:42.149000+00:00 Last activity: 2026-06-14T19:35:09.895000+00:00 ## ! Rushabh | Linux Shill — 2026-06-11T08:34:41.778000+00:00 <@1079361271687807026> can you take a look, we are depricating `renderGLTFToPNGBufferFromGLBBuffer` as it is not browser safe, i am replacing them with `renderGLTFToPNGFromGLB` which is browser safe these changes are in an effort to make the `poppygl` browser safe. ## ! Rushabh | Linux Shill — 2026-06-11T08:34:55.625000+00:00 https://github.com/tscircuit/jscad-electronics/pull/296 https://github.com/tscircuit/svg.tscircuit.com/pull/1562 ## ! Rushabh | Linux Shill — 2026-06-11T08:48:46.424000+00:00 <@809856037376491570> ## ! Rushabh | Linux Shill — 2026-06-11T09:07:15.482000+00:00 I added browser-safe equivalents in poppygl, and I’m now replacing the older Node-oriented calls in downstream repos. The reason is that the old functions pull Node-specific behavior into places that only need PNG bytes. Functions like renderGLTFToPNGBufferFromGLBBuffer, renderGLTFToPNGBufferFromURL, and encodePNGToBuffer are tied to Buffer/Node-style output, while the new browser-safe functions return plain Uint8Array, which works in both browser and server environments. By switching downstream repos to the browser-safe functions: the root poppygl API becomes safe to import in browser bundles ## ! Rushabh | Linux Shill — 2026-06-11T10:40:40.698000+00:00 https://github.com/tscircuit/easyeda-converter/pull/394 ## ! Rushabh | Linux Shill — 2026-06-11T14:22:53.693000+00:00 <@398467566588264449> ## Abse — 2026-06-11T14:23:44.274000+00:00 we have some urgent work I will check it later sry ## ! Rushabh | Linux Shill — 2026-06-11T19:27:11.045000+00:00 <@757706909351411845> can you take a look when you are free ## ! Rushabh | Linux Shill — 2026-06-14T19:35:09.895000+00:00 <@757706909351411845> TL;DR Functions like `renderGLTFToPNGBufferFromGLBBuffer`, `renderGLTFToPNGBufferFromURL`, and `encodePNGToBuffer` are tied to Buffer/Node-style output while the new browser-safe functions return plain Uint8Array, which works in both browser and server environments. To use `poppygl` in web we need to stop exporting them, i am replacing the old functions with the new browser compatible ones in these repos first https://github.com/tscircuit/jscad-electronics/pull/296 https://github.com/tscircuit/svg.tscircuit.com/pull/1562 so we can remove them from exporting