I'm parsing an iTunes feed, there are 3 image sizes within the feed and I'm not sure how to fetch the largest one.
The iTunes Feed example:
<im:image height="53">http://a1.image.53x53-50.jpg</im:image>
<im:image height="75">http://a1.image.75x75-65.jpg</im:image>
<im:image height="100">http://a1.image.100x100-75.jpg</im:image>
My class:
function get_app_image()
{
$data = $this->get_item_tags(SIMPLE_NAMESPACE_IM, 'image');
return $data['0']['data'];
}
php to output the image:
<img src="<?php echo $item->get_app_image(); ?>" class='alignleft1' height="100" width="100" />
It always outputs the first/smallest image, and I'm not sure how to define the largest?