title: Resize image from URL in Magento
body: <p>I am retrieving a url for each image in a custom category view:</p>
  
  <p>Like so:</p>
  
  <pre><code>foreach ($collection as $cat){
      $cur_category = Mage::getModel('catalog/category')-&gt;load($cat-&gt;getId());
      $_img = $cur_category-&gt;getImageUrl();
      //stuff 
  }
  </code></pre>
  
  <p>This is giving me the original image, I would like to resize using Magento's built in resize function. But I'm a newb, and can't figure out how to get that code to work like the code on the product list page:</p>
  
  <pre><code>$this-&gt;helper('catalog/image')-&gt;init($_product, 'small_image')-&gt;resize(306);
  </code></pre>
  
  <p>How do I modify/use the original code to make it resize the images? Thanks!</p>