title: resize image on the fly
body: <p>I've built a gallery using ci where the image that is uploaded is kept its same size as long as its within 3000x5000 px range. Upon displaying them and since i haven't cropped thumbnails , how can I re size them when needed so say i want to re-size a list of them as 150x150 how would i go about this?</p>
  
  <p>i followed the guide
  <a href="http://ellislab.com/codeigniter/user-guide/libraries/image_lib.html" rel="nofollow">http://ellislab.com/codeigniter/user-guide/libraries/image_lib.html</a></p>
  
  <p>Problem is when loading the library it wants me to specify each images complete config information.
  So say I loaded the variable into a controller to be displayed in a view, and when loading it would look like this:</p>
  
  <pre><code>foreach($gallery as $img)
  {
     echo "&lt;div&gt;";
     echo "&lt;img src='" . $this-&gt;img_lib-&gt;resize($img-&gt;imagepath, 150, 150) . "'&gt;";
     echo "&lt;/div&gt;";
  
  }
  </code></pre>
  
  <p>ps: does the image gets saved when its resized? because i dont want that.</p>
  
  <p>better solution: <a href="http://www.matmoo.com/digital-dribble/codeigniter/image_moo/" rel="nofollow">http://www.matmoo.com/digital-dribble/codeigniter/image_moo/</a></p>