Are there any JavaScript or jQuery APIs or methods to get the dimensions of an image on the page?
Try
function sizes() { console.log(`width: ${pic.width}, height:${pic.height}`); }
show size