lokesh / color-thief

Grab the color palette from an image using just Javascript. Works in the browser and in Node.

Home Page:https://lokeshdhakar.com/projects/color-thief/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parent dominant color for a background of an image located on another domain

peteparker opened this issue · comments

Hi to all,
we need to achieve the following:
on a Wordpress website create a DIV that holds an image URL located to another domain and the background colot of the DIV shall be the dominant color of the image (see image enclosed)

we need an example of the HTML code and how the script shall be written
we have more than one image to be shown with their own specific coloured background
we have to user an image URL since the images are dinamically changed on the server so the background color shall be re-coluored depending on the specific image that corresponds to that URL

dominant-color

That is a laudable objective.
The example you need is here: https://lokeshdhakar.com/projects/color-thief/
Kindly showcase your progress in this thread.