How chnage image size before uploaded on server [closed]

Resizing an image in php without uploading first is not possible as php only runs on the server side. It can be done with js though, there are a lot of libraries that can help you out, like Jimp, Jcrop and Processing.js.

If you really want it in php than the image has to be uploaded first and than you will be able the resize the image with imagecopyresized function for example.

The php manual has an example here

Browse More Popular Posts

Leave a Comment