从缓存中获取图像 MAGENTO

Get images from Cache MAGENTO

我有以下情况

它的图片将近 10 兆字节,执行必要的例程最多可达 4 兆字节。

我可以得到如下图片:

$imgsProdMagento = $product->getMediaGalleryImages();
foreach ($imgsProdMagento as $imgProdMagento) {
    var_dump($imgProdMagento);
}

return我是10兆的图片,看前端可以看到图片缓存小很多,我是这样获取的吗?

我试过如下,但是 return 我只是一个标记的图像,而不是 return 我 URL。

Mage::helper('catalog/image')->init($product, 'image');

我需要从缓存中获取产品所有图片的url。

试试这个Get full cached path of product relative images Magento

Mage::helper('catalog/image')->init($product->getProduct(), 'image', $_image->getFile())->resize(2000);