mage2pro/color

A product image color categorization module for Magento 2

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 2

Type:magento2-module

1.0.9 2020-10-25 19:59 UTC

This package is auto-updated.

Last update: 2022-06-26 00:04:14 UTC


README

A product image color categorization module for Magento 2.
It uses the Google's Cloud Vision API (based on deep learning) to detect the dominant color of a product's primary image, and then it automatically assigns the proper color swatch to the product.

When a product is saved, the module checks whether the product is a configurable child.
If so, the module checks whether the product's base image was changed. If so, the module analyses the image's colors using Google Cloud Vision API:
Then the module calculates the difference between the primary color and all swatches using the Delta E (CIE 2000) algorithm.
Sometimes the algorithm does not produce the result you want. In this case, you can correct the algorithm by specifying additional swatches for a desired color:
The module uses all samples in a color distance calculation and picks the minimum result as the distance between the swatch and the product image's dominant color. The module has a tesing sandbox. Put test images to the pub/media/mage2pro folder, and then go to the /mage2pro-color page. The sandbox will show what the module thinks about the images colors:
Please note that the module uses only color of the color Magento product attribute, so to make the module operate more colors, just add more swatches to the color attribute.

The module requires Google Application credentials. Put them to the app/etc/google-app-credentials.json file.

How to buy

You can buy it with PayPal here.

How to install

bin/magento maintenance:enable
rm -rf composer.lock
composer clear-cache
composer require mage2pro/color:*
bin/magento setup:upgrade
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f en_US <additional locales, e.g.: de_DE>
bin/magento maintenance:disable
bin/magento cache:enable

How to upgrade

bin/magento maintenance:enable
composer remove mage2pro/color
rm -rf composer.lock
composer clear-cache
composer require mage2pro/color:*
bin/magento setup:upgrade
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f en_US <additional locales, e.g.: de_DE>
bin/magento maintenance:disable
bin/magento cache:enable

If you have problems with these commands, please check the detailed instruction.

Licensing

It is a paid extension, not free.
You can use it for free for the testing puproses only.
Please read the testing policy before installation.

Support

Want to be notified about the extension's updates?