Image auto sizing in asp.net

P

pachuts

1.iN ASP.NET how to do autosizing of the image, so that image will be
displayed as it is with out being squished.
1.In ASP.net While for browsing for images, i just just want to restrict the
user to select only Files of type pictures (*.gif,*.jpg)

Thanks in advance,

-P
 
P

pachuts

Thanks for educating, but am uploading one image at any point of time and
every time image will be of differnet resolution,

so for this do i have to always use thumbnail images and then how would i
restrict the user to select only jpeg or gif images.

thanks again,

any help on this is most welcome,

-P
 
B

Brock Allen

Thanks for educating, but am uploading one image at any point of time
and every time image will be of differnet resolution,

Well, you could always do the resizing at upload time and store that at a
standard resolution/size.
so for this do i have to always use thumbnail images and then how
would i restrict the user to select only jpeg or gif images.

You'd have to look into the Bitmap class more to see what image formats it
supports. You can never restrict what type of file a user uploads, so you'll
just have to write very defensive code on the upload.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top