Ok this is not directly a deno thing, but anyway. Has anyone successfully used wasm-vips with
vips.Image.newFromFile(path);
vips.Image.newFromFile(path);
?
For me
vips.Image.newFromBuffer(buffer)
vips.Image.newFromBuffer(buffer)
works well. But opening local files directly for example
vips.Image.newFromFile('sample.jpg')
vips.Image.newFromFile('sample.jpg')
always complains:
error: vips::Error: unable to load from file sample.jpgVipsForeignLoad: file "sample.jpg" does not exist
error: vips::Error: unable to load from file sample.jpgVipsForeignLoad: file "sample.jpg" does not exist
I thought it would be an issue of relative paths, but I tried all kinds of relative paths (relative to Deno.cwd(), or import.meta.url, or the directory where vips-es6.js is stored), with no luck.
Furthermore I tried a simple filename without path, and put a sample.jpg in every directory I could think of where it might try to load it. No luck.
Am I missing something, or is this is a bug with wasm-vips on deno?