kleisauke / wasm-vips

libvips for the browser and Node.js, compiled to WebAssembly with Emscripten.
https://kleisauke.github.io/wasm-vips/
MIT License
492 stars 25 forks source link

Playground feature request: ability to import file from disk #47

Open Zireael07 opened 1 year ago

Zireael07 commented 1 year ago

Title.

I'd love to see the result of some operations on my own pictures <3

kleisauke commented 1 year ago

This should already be fairly straightforward, see for example this playground link. Though, perhaps this could be made easier via some kind of GUI.

Let's tag this as an enhancement. Very happy to accept a PR, if you're able.

Zireael07 commented 1 year ago

For GUI, literally all you'd need is a

/ </ input type="file" id="fileInput" name="file" accept="image/*" />

I imagine...

kleisauke commented 1 year ago

Indeed, I meant some kind of "Files"-tab where you can manage the preloaded files and perhaps have them persist to IndexedDB. But maybe that's too complicated.

For now, I can recommend the playground link above.