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

Image width and Height
 
will_olbrys
Jr. Member
 
Total Posts:  1
Joined:  2008-04-17
 

I’m trying to properly check the width and height of an image before i resize it in template/product/view/media.phtml . I’ve spent hours trying to find a way to get the width and height data passed back though the object models. How do I pass that data back? Or how can I access app/code/core/Mage/Media/Model/File/Image.php? whenever I try to call $_product->getDimensions() i get null returned…

thanks,

will

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