Net Imaging Perl-CGI example.

Before running the example:

Upload a JPEG file for processing

You can specify the final image size requirements (optionally).

Final size (width x height)x pixels (specify both or nothing)
The ablity to control it via the upload form is made here for demo purposes only,
but usually it's specified by the webmaster and the user can't control it.