this is php script which fetch the top four colors from image and matched them with the closest color present in our library.