Hidden form values are set when a selection is made. If you click the Crop Image button, the form will be submitted and a 150x150 thumbnail will be dumped to the browser. Try it!
The PHP code for this demo (using gd) is included in the archive.
These demos have been adapted for display on this website. Simplified versions of the same demos (with simplified source code) are included in the archive download.