Trying to reproduce a crash in the libvips build bundled with Tropy:
$ node -v
$ SHARP_IGNORE_GLOBAL_LIBVIPS=true npm install
$ ls node_modules/sharp/vendor/8.14.2/linux-x64/THIRD-PARTY-NOTICES.json
This is to install the sharp and libvips binary.
Then you can run the script like this:
$ npx electron . [DIRECTORY]
This will process all JPG/PNG files in [DIRECTORY]
.
The script loads all the files, resizes, and converts them to WebP.
All this happens in memory only; nothing is saved to disk.