Remembered that I made such a tool for myself ten years ago. Dusted off a backup, updated dependencies (and replaced some), refactored somewhat, changed license to AGPL and uploaded here: https://codeberg.org/nykula/imgie
Should be very easy to install because the backend is just ImageMagick and SQLite.
Beware of a 250M node_modules, though. My code is less than 1K lines in the initial commit, but the linters, bundlers etc are the same as I use for big projects.