Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Pull image directly from Media Folder
 
Locker Rushing
Jr. Member
 
Total Posts:  19
Joined:  2008-12-15
 

Hey,

Can anyone tell me how to get an images url directly from the media folder? I want to bypass the compression of using: $this->helper(’catalog/image’)->init($_product, “image_url");

I have almost got it with: Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).$_product->_data[’image_url’];

but this creates a double slash //. Rather then stripping the slash, I’m wondering if there is a better url construction.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top