Hacker News new | ask | show | jobs
by woranl 423 days ago
It would be nice if I can feed an image blob to it, and return the edited image as a blob programmatically - i.e. without the need for an UI to open or download the image. That will help integration/embed it into other apps.
1 comments

maybe using the underlying webgl library could help your usecase? https://github.com/xdadda/mini-gl

The constructor requires - a canvas (which can be an OffscreenCanvas) - an arrayBuffer with the image (which you easily get from a blob with "await blob.arrayBuffer();" )