Totally awesome! I faced this issue quite alot, always fixed it using a darker overlay on the image ( the easy way ). Would totally like to join on the npm package. But i am wondering what would happen if its a high res image. Would it take a while to go through all the pixels ?
Well, in current example both images used are of huge resolutions.So they take approximately same amount of time as browser take to render it.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.