View Full Version : Image Resizing in .NET

11-24-2003, 08:47 AM
I want to create a gallery that my users can upload images into and I can then resize the images on the fly to create thumbnails and half size images or even to create them after uploading.

My host doesn't and wont support AspJpeg but have told me I can do this using .NET, since I have no idea when it comes to .NET I was wondering a few more things.

1. Is it possible to leave my site in ASP classic and just call the .NET upload script to resize and rename the files and then redirect the user to a "Success" page?

2. Is it better to create the thumbnails on the fly or make them once and save the filenames to a db?

Any tips on how I would go about doing this would be appreciated aswell.



I know there are a few examples and pre-made scripts but I don't understand what the hell they are talking about, and they usually just show thumbnails from a dir, I want to be able to select specific groups of images from my db and show only those thumbnails etc.

11-24-2003, 04:33 PM
it is very easy to generae Thumnail on the fly with .NET, you can store them into a database or in a special folder, you can alsoi generate them only when needed and not store them

of course you can use only one page to resize your picture and come back to a classical asp page

you can find easily example every where and use them without nearlly knowing nothing in .NET

you could also use a web service to do that job ... I don't know where to find one, and too lasy to do it :-)))

11-25-2003, 06:19 AM
Really what I want is a form that a user enters a title and description of the image and selects the file for upload, then the title and desc are inserted into the database along with a unique file name, say username_datetime, and the image is stored on the disk.

Later I can use

<img src="image_show.aspx?ID=43&width=100&height=75">

to display the image and image_show.aspx will resize the image.