In hook_node_load I need to get the width and height of a styled image, for a given fid.
The image style has only height effect and the width is scaled and calculated by Drupal, so using image_styles() is of no use.
My code so far is like this:
$field_image = field_get_items('node', $node, 'field_image', LANGUAGE_NONE);
$img_uri = file_load($field_image[0]['fid']);
$img_url = image_style_url('mystyle', $img_uri->uri);
$img_info = image_get_info ($img_url);
$img_info gives me FALSE instead of the info. How to get the width?