You can use the answer of this SO question to get the RGBA values ββfor an image pixel using JavaScript, I will call this:
isTransparrent(imageUrl, x, y);
Then whenever you hover over the image, you can check this function:
$('#some-image').hover(function(e) { var isTrans = isTransparent( this.src, e.pageX - $(this).pageX,
source share