Jquery PHP

Image Upload and Cropping with PHP and Jquery

Image cropping is the most important and required part in social media projects.

upload image file into physical location, cropping image using jquery and resizing image into small resolution. Hope you like this thanks!

Sample database design for Users.

Users

Contains user details username, password, email, profile_image and profile_image_small etc.

index.php

Contains PHP code uploading image into uploads folder physical location and image path updating in users table set profile_image.



//HTML Body

Javascript

ajax_image.php

Contains simple PHP code, resizing cropped image into 100 x 100 pixel and updating into users table profile_image_small.