I'm using Photon on a site that uses wp_get_attachment_image_src to pass the image along to a script which opens the image in a lightbox:
$large = wp_get_attachment_image_src( $a->ID , 'gallery-large' );
The image size is defined in functions this way, limiting the height to 600px, but allowing for whatever width is necessary:
add_image_size('gallery-large', 9999, 600, false );
In the code, I'm using <?php echo $large; ?> to pass the image URL to the script, and Photon has properly taken that over. However, I'm also passing the actual width of the image to the script using <?php echo $large; ?>. When Photon is deactivated, it works fine and returns the proper value. However, when Photon is activated, the width is not returned. Shouldn't this data still be stored in the DB and available to me to access? Is this a Photon bug, or is there another way I can determine the width?