Image Upload and Crop in Modal with Codeigniter, MySql and jQuery

Image uploading and cropping is the most important functionality of any web project.In this article, I have also shared the Live Demo and Source Code to upload and crop images in a boot model using Codeigniter, MySql, and jQuery.This is a simple jQuery image cropping plugin cropper.js.
Step 1: Include JS and CSS file
Open “application/views/crop/index.php” file and add code like as bellow:
Step 2: Create a Model file Cropper
Create a model file named “Cropper.php and Site.php” inside “application/modes” folder.
Step 3: Create a Controller file Crop Express
Create a Controller file named “Crop.php” inside “application/controllers” folder.
Step 4: Create a view file index
Create a view file named “index.php” inside “application/views/crop” folder
Step 5: Create a file main.js
Create a view file named “main.php” inside “assets/crop/js” folder
Step 7: Open file constants
Open “application/config/routes.php” file and add code like as bellow: