I need the PHP code that: After a form has been submitted, this script takes the image (POST), and then resizes it so it is 50% of the original size, and then it saves this image in x directoy. Very simple as said in title. I hope someone can do this.
I can easily do this for you. Do you need the code snippet, or do you actually need this implemented into your site? I can start work immediately if you want to award the job to me, we can discuss price via PM. Hope to hear from you soon!
Im sure that apprx 4 lines of code wont take long 1 to get the image from the form 2 to resize this image 3 to store the image in some variable 4 to write it to a directory
It isn't **that** complex of a function, but a real image resize function isn't 4 lines. To properly resize images, you should be creating an image using the GD library, writing code to grab the width/height attributes, and then using PHP functions like imagecreatetruecolor() to ensure you properly maintain the image quality and it is resampled, and also some code to properly maintain aspect ratio. This is all much more than 4 lines.