Home » Php » PHP Image uploader (with resize and crop)

PHP Image uploader (with resize and crop)

Posted by: admin July 12, 2020 Leave a comment

Questions:

I’m creating a form which should allow a user to upload a photo (along with other form elements such as text boxes) but I’m in need of a PHP script which will allow the photo to be uploaded, and if the image does not conform to specific dimensions to be resized and then cropped (from bottom center of the image).

Can you recommend any scripts available?

How to&Answers:

A fast search gave me the following results.

If I was you I would use Jcrop with my own uploading script.

Answer:

I would like to recommend this example.

http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/

Good luck.

Prasad.

Answer:

I recommend upload.class.php. It is the best class for handling images.

You can find it here:
http://www.verot.net/php_class_upload.htm