从缓存MAGENTO获取图像


Get images from Cache MAGENTO

我有以下情况

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

我可以得到以下图像:

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

它返回给我10兆字节的图片,查看前端是否有可能看到图像qua缓存要小得多,因为我要获得它?

我已经尝试如下,但是它返回我只是一个标记的图像,不返回我的URL。

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

我需要从缓存开始获取产品的所有图像的url。

try this获取产品相关图片的完整缓存路径Magento

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