Home All Groups Group Topic Archive Search About
Author
5 May 2005 5:48 AM
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

Author
5 May 2005 1:30 PM
Brock Allen
I have a sample that generates thumbnail images by doing the resizing in
the server:

http://staff.develop.com/ballen/blog/PermaLink.aspx?guid=2d8b430b-8361-416d-9df8-9aff48bf2481

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> 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
>
Author
6 May 2005 4:07 AM
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

Show quoteHide quote
"Brock Allen" wrote:

> I have a sample that generates thumbnail images by doing the resizing in
> the server:
>
> http://staff.develop.com/ballen/blog/PermaLink.aspx?guid=2d8b430b-8361-416d-9df8-9aff48bf2481
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
> > 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
> >
>
>
>
>
Author
6 May 2005 4:43 PM
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.

-Brock
DevelopMentor
http://staff.develop.com/ballen