I am trying to return the src, width and height of a cetain image:
$img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
This is returning the expected array but with incorrect width and height values
$img -> .../wp-content/uploads/2014/11/image-2000x1125.jpg $img -> 640 $img -> 360
The image is actually 2000x1125 but the width and height returned are incorrect. I have tried regenerating sizes with several plugins with no luck. This issue happens only with 'large' size.
Could this be a bug? Is there some other way of returning image sizes (hopefully correct)?