Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image upload crop resize save to folder

Tags:

jquery

php

yii

I want from user to upload an image of any size for (jpg,png,gif) format. After uploading the image I want him to crop the image (client side) using jquery and save that cropped image (php) to application folder.

Please tell me the feasible solution to make this functionality working fine.

like image 885
Lalitesh Upadhyaya Avatar asked Apr 23 '14 08:04

Lalitesh Upadhyaya


1 Answers

ImageMagick is used for croping images:

http://www.sitepoint.com/crop-and-resize-images-with-imagemagick/

For using ajax:

http://www.sanwebe.com/2012/05/ajax-image-upload-and-resize-with-jquery-and-php

like image 101
Vishwa Parekh Avatar answered Oct 12 '22 23:10

Vishwa Parekh