Isolating images in uploads not used/recognised by WordPress

It would be easier to use a plugin for this. I’ve been using this one for similar task https://wordpress.org/plugins/media-cleaner/. It missed some files, but removed majority of the “orphaned” images though.