This is an example of cropping an image, using some javascript.   The image is uploaded to the server, and then shown in the htmlframe by the JS, and then the crop data is returned to the mainmodule, where you can resample the image.   There is a need for better resampling routines, maybe somebody can fix that - and if so please uploaded the new version.   Probably needs a little adjustment of the JS too re. moving the cropframe if it's maxed out.   The JS is in the cropFrame.HTML, b