is there an easy way to get the final height and width of a background image with Javascript or jQuery even if a background-size
property was applied?
I mean, I know I can get the background image url and load it to an Image
object and then get the width and height. But it is the size of the source image. If someone scaled it with CSS then the size changed
How can I find its final size?
@edit
it is different from the question marked as similar because it doesnt say how to get the size in pixels if someone changed the background-size