Took me a while to find this but it’s actually in the Image Helper docs: http://docs.magentocommerce.com/Mage_Catalog/Mage_Catalog_Helper_Image.html
To get the width and height of the original product image (not resized ones, but the original ones that are uploaded when creating the product):
$this->helper('catalog/image')->init($_product, 'image')->getOriginalWidth() $this->helper('catalog/image')->init($_product, 'image')->getOriginalHeight()
This is very useful when you need to make decisions based upon the dimensions of the original product image. For example, if the uploaded product image is smaller than 500px in width, the Zoom View would shrink to the image width; if not, the Zoom View would stay at 500px in width.
Grab the latest premium Magento theme: Avalanche to kick-start your store! Get to know it and you will definitely look no further. Use coupon code: