Closed CoenraadS closed 1 year ago
I could reproduce this, it looks like commit 0d776ceb41b089289b11047b6eb6b64e225e4ad3 causes somehow a conflict with the dynamic vips-jxl.wasm
module introduced in commit 995eba0242b674332107dc91087371aaec9916f.
You can workaround this by overriding the locateFile
callback.
@@ -10,7 +10,9 @@
<script src="./vips.js"></script>
<script type="module">
- const vips = await Vips();
+ const vips = await Vips({
+ locateFile: (fileName, scriptDirectory) => scriptDirectory + fileName
+ });
</script>
</html>
Or by disabling support for dynamic modules (which implies that support for JPEG XL images is also disabled).
@@ -10,7 +10,9 @@
<script src="./vips.js"></script>
<script type="module">
- const vips = await Vips();
+ const vips = await Vips({
+ dynamicLibraries: []
+ });
</script>
</html>
I'll investigate why this is necessary.
Fixed with commit 5a21668ffaa48e6ea0b3756b5c4b2934f57f568d. This will be in v0.0.5.
v0.0.5 now available.
Hi, I'm really excited to try this project, but couldn't seem to get it running locally (Firefox & Chrome)
This was my minimum attempt:
Folder structure:
Console output:
project.zip