I am using this npm module called image-js and here is what I am getting as an out from the image
const image = await Image.load(
'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg'
);
const d = image.getRGBAData();
console.log(d);
Documentation of the npm module
All I want to show a histogram chart as a image to DOM from the given URL of the image