I would like to compress image from user. I thought I could use GD, so I wrote code like this.
imagepng($_FILES['upload_file'], NULL, 6)
But this was wrong. Can I compress image from user with imagepng? (I dont have to save this file from user because I write the code in other place.) Please tell me.