Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling size and color-depth of uploaded images

Status
Not open for further replies.

zakman

Programmer
Aug 15, 2001
49
0
0
US
Suppose that you have a web application that allows the user to upload pictures (jpg only) to your webserver. However, you want to limit the size of the picture to 100Kb (or less) and the image cannot be larger than 640x480 pixels. Suppose that you were able to perform this reduction, but the image was still too big, perhaps one could reduce the image's color depth to 256.

Are there any server-side controls to do this? Would ASP.NET be able to handle this task?

I just know that people will upload 1600x1024 Hi-color images having a footprint of 2Mb of a bolt... ok, maybe that's a bit extreme, but you know that a simple 20Kb jpg would show plenty of detail.

--Kevin
 
.net could handle it yes, also serverobjects.com sells aspimage, a pretty potent component, that will let you do this as well and many other tricks(59$)


[thumbsup2]DreX
aKa - Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top