You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve been experimenting with Bun.Image for an ESP32/LVGL image pipeline, and one thing I’m currently missing is support for raw pixel output.
Bun.Image is already very useful for decode, resize, and re-encode workflows, but it seems to stop at encoded output formats like JPEG, PNG, WebP, etc. What I need in this case is access to decoded pixel buffers, similar to what sharp provides with:
That returns raw pixel data plus metadata such as width, height, and channel count, which makes it possible to pack the pixels into device-specific formats like RGB565.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I’ve been experimenting with Bun.Image for an ESP32/LVGL image pipeline, and one thing I’m currently missing is support for raw pixel output.
Bun.Image is already very useful for decode, resize, and re-encode workflows, but it seems to stop at encoded output formats like JPEG, PNG, WebP, etc. What I need in this case is access to decoded pixel buffers, similar to what sharp provides with:
sharp(input)
.resize(width, height)
.ensureAlpha()
.raw()
.toBuffer({ resolveWithObject: true })
That returns raw pixel data plus metadata such as width, height, and channel count, which makes it possible to pack the pixels into device-specific formats like RGB565.
All reactions