The purpose of this plugin is to generate dominant colors of any image set in Wordpress or WooCommerce and set it as attribute of the image / product
Some of the codebases we can use:
github/lgladdy/wordpress-dominant-color (Wordpress plugin)
github/ksubileau/color-thief-php (the original codebase that seems alot of people are using)
The last one also has color difference detection, which we would need to group the colors of several products into similar colors.
The plugin would take the main image and process it. We should be able to start the script from the plugin from wordpress admin panel, and it should be able to find all new products uploaded and add attributes to it.