I want the product image type in galley object. Currently I'm getting the product images gallery as below. (Assume $id is the product ID)
$gallery= Mage::getModel('catalog/product')->load($id)->getMediaGalleryImages(); But If I Mage::log() any object in the $gallery collection it is like below.
[_data:protected] => Array ( [value_id] => 4 [file] => /p/e/penguins_1.jpg [product_id] => 4 [label] => [position] => 1 [disabled] => 0 [label_default] => [position_default] => 1 [disabled_default] => 0 [url] => http://xxxxxxxxxxxxxxxxxxx/media/catalog/product/p/e/penguins_1.jpg [id] => 4 [path] => C:\xxxxxxxxxxxxxxxxxxxxxxxxxxxx\media\catalog\product\p\e\penguins_1.jpg ) What I want is to get the image type in above object. Because getMediaGalleryImages() doesn't return collection with the image type.
Image type can be 'image', 'small_image' or 'thumbnail'
Any suggestion, how can I get the image type?