People can upload pics. I have a box where a max size photo of 400 x 400 pix can fit in. The pics are alway centered . Is there a way, or some code, that i can use when a smaller or larger photo is uploaded, so that it automatically resizes the photo to
fit within certain parameters in that box without deforming the picture?
I'm not sure if I understand exactly what you're looking for, but if I'm right the easiet way to accomplish a 400 x400 pic is just to use the pre-existing code for uploading images in the classifieds starter kit.
Which you already have the code.
You would just need to alter /App_Code/BLL/DefaultValues
If this is not what you are looking for please clarify.
Web:www.Detelli.com Please remember to mark the post as answer that solves your issue.
This will be greatly benificial for other users.
Member
2 Points
19 Posts
automatic resizing when uploading a picture
Sep 03, 2007 09:17 AM|rudip|LINK
Hi,
Can someone help me please?
People can upload pics. I have a box where a max size photo of 400 x 400 pix can fit in. The pics are alway centered . Is there a way, or some code, that i can use when a smaller or larger photo is uploaded, so that it automatically resizes the photo to fit within certain parameters in that box without deforming the picture?
Thank You
Rudy
Participant
1165 Points
1035 Posts
Re: automatic resizing when uploading a picture
Sep 03, 2007 11:47 AM|darkknight187|LINK
I'm not sure if I understand exactly what you're looking for, but if I'm right the easiet way to accomplish a 400 x400 pic is just to use the pre-existing code for uploading images in the classifieds starter kit.
Which you already have the code.
You would just need to alter /App_Code/BLL/DefaultValues
If this is not what you are looking for please clarify.
Please remember to mark the post as answer that solves your issue.
This will be greatly benificial for other users.