Magento get product images
Here is how to get the images for a specified product. The image path will point to a resized image of the specified size.
$_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
if($_images) {
foreach($_images as $_image){
$pathToImage = $this->helper('catalog/image')->init($_product, 'thumbnail', $_image->getFile())->resize(200); //200 is the size of
$imageLabel = $_image->getLabel();
// construct array to collect data or use data
}
}