Find unused images

I need a tool to find all the image links in my site (markdown and nunjucks templates) and then compare that to all the images in my image folder. 409 images seems a bit much for 157 posts. Pretty sure there are a lot of orphaned pics, but would rather not do a manual one-by-one search for 'em…

Help!

I have never used it, but there are a few modules related to your need on NPM. Like this Gulp plugin: https://www.npmjs.com/package/gulp-obsolete-images.