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, but for JS debugging it is usually
easier to edit when loaded from a file.
There should be another way to do this, where the image is never
initially uploaded to the server, but stays in the browser only and
is also resampled in the browser using JS, and then at last uploaded
to the server. Less data to transport, but a bit more work for the client.
unigui crop.zip