title: Upload image, create its thumb then save
body: <p>Let's say I uploaded an image. I can get its temp directory, then save it with <code>move_uploaded_file()</code> but what if I wanted to also create a thumb and save both in some folder?</p>
  
  <p>I know how to save the uploaded image, but I don't know how to start manipulating an image and save it after creating a thumb.</p>