I have an owl-carousel with one item per slide and each image in the gallery has different dimensions and aspect ratios.
What I want is to get the width and height of the current or active image.
I've tried:
$owl.on('changed.owl.carousel', function(event) {
var $activeimg = $(".active").find("img");
console.log($activeimg.width() + " , " + $activeimg.height());
});
However, this returns the dimensions that the image was previously, not the image it changed to.