title: How to save an image without using the imagepng() function?
body: <p>So I have been manipulating images using the GD library, and would like to first save those images and then redirect the user to another page. However, with the imagepng() function that appears to be impossible.</p>
  <p>see below:</p>
  <pre><code>/// image manipulations beforehand
  imagepng($image, $savepath);
  echo '&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;URL=different_page.php&quot;/&gt; ';
  </code></pre>
  <p>Whilst it does save the images in question, it doesn't allow for any redirections afterwards. Hence my question: what other way is there to save these images without using imagepng?</p>