123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|697|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Web Development -> What Size is the Image

Thu, 26 May 2016, 02:59
spinal
[web] Anyone know how to get a image size AFTER object-fit:cover; has been applied?

-=-=-
Check out my excellent homepage!
Thu, 26 May 2016, 02:59
Jayenkai
This... https://www.w3schools.com/jsref/prop_img_height.asp
Appears to suggest that you are returned the "rendered" image's width/height.
(At the bottom it mentions CSS)
But I'd do some testing on different browsers, and don't forget that Ctrl+/- zooming might also break it. Double check all cases!!

-=-=-
''Load, Next List!''