How can I pull the product image absolute path in a product?
This returns the product along with the URL:
Mage::helper('catalog/image')->init($_item, 'small_image')->resize(160, 128)
But I needed to access this the _newFile from this object:
object(Mage_Catalog_Helper_Image)#3877 (14) {
["_model":protected] => object(Mage_Catalog_Model_Product_Image)#3876 (34) {
["_width":protected] => int(160)
["_height":protected] => int(128)
["_quality":protected] => int(90)
["_keepAspectRatio":protected] => bool(true)
["_keepFrame":protected] => bool(true)
["_keepTransparency":protected] => bool(true)
["_constrainOnly":protected] => bool(false)
["_backgroundColor":protected] => array(3) {
[0] => int(255)
[1] => int(255)
[2] => int(255)
}
["_baseFile":protected] => string(90) "/file/path/media/catalog/product/V/V/123.jpg"
["_isBaseFilePlaceholder":protected] => bool(false)
["_newFile":protected] => string(151) "/file/path/media/catalog/product/cache/6/small_image/160x128/9df78eab33525d08d6e5fb8d27136e95/V/V/VV123.jpg"
Thank you!
<?php echo Mage::helper('catalog/image')->getModel()->getNewFile() ?>