Get Non-Cached Product Image In Magento

back to tech articles
Magento CE 1.7.0.2

Sometimes you want to retrieve the non-cached product image in Magento, such as when you need to provide a Pinterest image?

Here’s how we get it:

1
2
3
4
5
<?php
$_baseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
?>

<img src="<?php echo $_baseUrl."catalog/product".$_product->getImage() ?>" alt="image" />

That’s it, a non-cached, full-size image for your mage product.

Leave a Reply

Your email address will not be published. Required fields are marked *