I am creating an image cropper.
I have the following declared in PHP. This is the image that is going to be cropped.
$src_name = 'image.jpg';
After declaring this, I have a simple javascript image switcher.
Then I have the form where the cropping of the image takes place.