Create thumbnail while Image Upload

Posted by Raj.Trivedi under ASP.NET on 8/11/2013 | Points: 10 | Views : 861 | Status : [Member] [MVP] | Replies : 1
Hello Team,

I am trying to create thumbnails on the fly from the image i upload.

I have 2 folders 1) OriginalImage 2) ThumbnailImage

The task i am trying to achieve is the image i select should be uploaded to OriginalImage and simultaneously create a thumbnail of the sameimage and store it in the thumbnail folder.

In short the image that is getting uploaded in the OriginalImage folder the same has to be uploaded in thumbnail folder with its width and height of 300 x 200.

So in conclusion i want to create the thumbnail of the image of 300 x 200 maintaining the aspect ratio

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved



Responses

Posted by: Bandi on: 8/12/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer the following links for creating thumbnail images
http://www.west-wind.com/weblog/posts/2004/Feb/26/Creating-Thumbnail-Images-on-the-fly-with-ASPNet
http://msdn.microsoft.com/en-us/library/system.drawing.image.getthumbnailimage.aspx

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response