title: Programmatically get the width and height of a product image in Magento?
body: <p>Inside Magento templating code I want to get the width and height of the original product image (uploaded by admin when creating product), so as to make according adjustments.</p>
  
  <p>How can I do this? Thus far I have:</p>
  
  <pre><code>$this-&gt;helper('catalog/image')-&gt;init($_product, 'image')
  </code></pre>
  
  <p>Does this have any methods that would allow me to retrieve the original dimensions of the product image? Such as:</p>
  
  <pre><code>$this-&gt;helper('catalog/image')-&gt;init($_product, 'image')-&gt;getWidth()
  </code></pre>
  
  <p>Or something?</p>
  
  <p>Thanks!</p>