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
PS > node app.js
rb [vips::Error]: unable to call jpegsave
VipsImage: unable to write to "/tmp/vips-0-3093572251.v"
system error: No such file or directory
at Fb (file:///.../node_modules/wasm-vips/lib/vips-node.mjs:58:43)
at me (file:///.../node_modules/wasm-vips/lib/vips-node.mjs:216:270)
at wasm://wasm/015f49d6:wasm-function[3980]:0x1a22de
at ue (file:///.../node_modules/wasm-vips/lib/vips-node.mjs:218:356)
at wasm://wasm/015f49d6:wasm-function[6012]:0x2b8b15
at me (file:///.../node_modules/wasm-vips/lib/vips-node.mjs:216:270)
at wasm://wasm/015f49d6:wasm-function[3253]:0x176546
at he (file:///.../node_modules/wasm-vips/lib/vips-node.mjs:218:38)
at wasm://wasm/015f49d6:wasm-function[4349]:0x1b9ab4
at Image.jpegsave (eval at Sh (file:///.../node_modules/wasm-vips/lib/vips-node.mjs:153:241),<anonymous>:7:1) {
ta: 9375224
}
nc192085.png
Notes
vips.Image.newFromFile('small.png').jpegsave('small.jpg'); => OK
vips-dev-8.16\bin\vips.exe jpegsave nc192085.png nc192085.jpg => OK
on WSL2 (Ubuntu 22.04 / Node.js v22.5.1) => OK
The text was updated successfully, but these errors were encountered:
The Wasm binary is somewhat POSIX-specific, so it doesn't recognize that it's running on a Windows system. By default, it uses the /tmp directory when libvips decompresses a large image (above 100MiB when decompressed) to a temporary file on the disk. You can adjust the threshold for open-via-memory versus open-via-disk using the VIPS_DISC_THRESHOLD environment variable. See for more information: https://www.libvips.org/API/current/How-it-opens-files.html
To prevent the use of the /tmp directory, you can also set the TMPDIR environment variable to a different path, for example:
When attempting to load large images, such as those with 8K resolution, the operation occasionally fails.
OS: Windows 11
Node.js:
v22.9.0
wasm-vips:
0.0.11
nc192085.png
Notes
vips.Image.newFromFile('small.png').jpegsave('small.jpg');
=> OKvips-dev-8.16\bin\vips.exe jpegsave nc192085.png nc192085.jpg
=> OKThe text was updated successfully, but these errors were encountered: