image / colordetect
Detect color of image
dev-master
2018-09-08 06:43 UTC
This package is auto-updated.
Last update: 2024-05-08 20:27:38 UTC
README
Step 1 :
Create a new laravel project
composer create-project --prefer-dist laravel/laravel blog_demo
Step 2 :
Require this package with composer using:
• Add in composer.json must be have you minimum-stability is dev,("minimum-stability": "dev" in composer.json)
composer require image/colordetect
OR
• Add in composer.json :(after adding, you should update your composer[ composer update ]
"require": { … "image/colordetect": "dev-master" }
Step 3 :
After updating composer, add the service provider to the providers array in config/app.php
image\colordetect\ColordetectServiceProvider::class,
Step 4 :
Call in postman
API BASE URL : http://localhost/<project_name>/public/getImageMainColor
Parameters : "file" : 1.jpg,
Demo
That’s it – load URL in the postman!