Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Image uploader (with resize and crop) [closed]

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?

like image 823
user1114260 Avatar asked Dec 24 '11 04:12

user1114260


3 Answers

A fast search gave me the following results.

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

  • php- Edit upload file + Crop image
  • upload and crop image before sending it to the server
  • Image uploader + crop
like image 123
Dimme Avatar answered Nov 19 '22 19:11

Dimme


I would like to recommend this example.

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

Good luck.

Prasad.

like image 25
Prasad Rajapaksha Avatar answered Nov 19 '22 20:11

Prasad Rajapaksha


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

like image 4
AbTheAsk Avatar answered Nov 19 '22 19:11

AbTheAsk