I am getting all the product images programmatically to create a banner slider from all of them, right now it is showing all the images that are uploaded from the admin to the specific product.
<?php $galleryData = $product->getData('media_gallery');
$galleries = $galleryData['images'];
$_media = Mage::getBaseUrl('media');
foreach($galleries as $gal_images){ ?>
<?php echo $all_I_mages = $_media.'catalog/product'.$gal_images['file']; ?>
<div style="background-image:url(<?php echo $all_I_mages ?>); background-position: center center; background-repeat: no-repeat;
background-size: auto auto; background-color: #efefef; " >
</div>
<?php } ?>
Now i want to exclude some of the images from this array for example i dont want to include "small image" , "thumbnail" , and "base image"
can anyone guide what check i need to apply to solve this issue