Various issues
So this all started when I posted on Reddit a problem: https://www.reddit.com/r/FoundryVTT/comments/sxe1rc/request_help_to_find_a_token_art_module_or_code/
I tried your tool but I found some issues that I am hoping you can help me work through ...
(1) if you change more than one setting on the module configuration screen (gear -> configure settings -> module settings) a save will update the first setting and discard the rest.
(2) Settings on the Compendium Mapper popup do not seem to over-ride the configuration settings.
(3) A script to remove all current portraits and images would be nice.
OR
(3) The way I read the Compendium Image Mapper popup was that if the image mapped >= 90% the selection could be made automatically with exact ties prompted for. This seems to work. However, everything below 90% is not prompted for if the "Manually map image if match ratio is above __%" This might work as designed but when you start with a mix of crap and empty portraits and tokens it does not help. A script (see 3 above) could start with a blank slate, auto-match as much as you can them run through an iteration of manual matching those less than a 90% match. a suggestion would be to allow an if below the automatically match setting but above 40% say then prompt.
(4) a list of words to ignore in filenames would be nice, for example, all of my tokens start with the word token, portraits start with portrait. since I am on Linux all spaces are underscored '_'. I think these throw off your pattern match but I could be wrong.
Discord jbowens#0415