title: Resize image using PHP if it's too small
body: <p>I'm allowing user uploads, and I want to scale their images up if they're too small (low quality is a non-issue). I need to make the smallest side become 150px and have the other dimension scale up to keep the aspect ratio. I need to make it work for .jpg, .gif and .png files.</p>
  
  <p>Any pointers would be greatly appreciated, I'm struggling to find anything about making images larger like this.</p>