Reputation: 487
I have the following situation.
It pictures to nearly 10 megabytes and to perform the necessary routine can be up to 4 megabytes.
I can get the images as follows:
$imgsProdMagento = $product->getMediaGalleryImages();
foreach ($imgsProdMagento as $imgProdMagento) {
var_dump($imgProdMagento);
}
It returns me the picture with 10 megabytes, looking at the frontend is possible to see the image qua cache is much smaller, as I do to obtain it?
I've tried as follows, however it returns me just an image that is marked and does not return me the URL.
Mage::helper('catalog/image')->init($product, 'image');
I need to get the url of all images of the product starting from the cache.
Upvotes: 3
Views: 1923
Reputation: 3554
try this Get full cached path of product relative images Magento
Mage::helper('catalog/image')->init($product->getProduct(), 'image', $_image->getFile())->resize(2000);
Upvotes: 2