Determine image height within Fancybox
Finally I came up with the solution to retrieve the image height using PHP getimagesize() and printing it as the ID of the image. Later, in JS I used: var contentheight = jQuery(‘.fluidimage’).attr(‘id’); to retrieve the height and perform the necessary action. Here’s the PHP code: <?php $imageurl = $pathtoimage; $image_size = getimagesize($imageurl); $image_height = … Read more