Uploading and Resizing a JPG Using ASP

This demo uses both our csImageFile and csASPUpload components. It allows you to upload a JPG image and specify some new size and compression options. After uploading it will display the reduced image, as well as some details.

The original file size is limited to 600 KB, and it must be in JPG format. Use the browse button to find a JPG image on your system.

Resize to:
Max width 150 pixels
Max height 150 pixels
Scale to 20%
JPEG Quality  90     70     50   
(high value = high quality, large file size)
  

In this example the image is discarded after uploading. It is not saved to disk.

Click Here if you want to view the description without uploading a file.

We have two downloadable demos that deal with uploading an image. These both show how to store the images in a database (MS Access). One demo is for use with csASPUpload only, the other also allows resizing and requires csImageFile as well.

Click Here for the upload demo.

Click Here for the upload & resize demo.