| Here I'm cropping the image images/nature.jpg which is based on the original image demo-images/nature-orig.jpg. This hidden input("input_image_ref") may also be an id representing the image. That's the safest method. Example: input_image_ref = 1. 1 will be sent by Ajax to crop_image.php. crop_image.php will do a query to a database and return the path to the image where ID = 1. |