title: Image upload security - reprocess with GD
body: <p>I've heard that the best way to handle uploaded images is to "re-process" them using the <code>GD</code>  library and save the processed image. see: <a href="https://stackoverflow.com/questions/4166762/php-image-upload-security-check-list">PHP image upload security check list</a><br>
  <br>
  My question is how do this "re-processing" in <code>GD</code>? What this means exactly? I don't know the GD library very well and I'm afraid I will mess it up...</p>
  
  <p>So if anyone who did this before could you give me an example for this?</p>
  
  <p>(I know, another other option is to use ImageMagick. For ImageMagick I found an answer here: <a href="https://stackoverflow.com/questions/3614925/remove-exif-data-from-jpg-using-php">Remove EXIF data from JPG using PHP</a>,  but I can't use ImgMagick now. By the way.. removing EXIF data means completely recreate the image in this case?)<br>
  (I'm using Zend Framework if someone interested.)</p>