Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ALL,

I have a site where I will be displaying the same photo with different sizes. How to do it in asp.net with C#. It is like this upload a image and use this image in different places with different sizes.
Posted

1 solution

If the image is being used in multiple places on the same page you can use CSS to resize the image in the browser. The image will only be downloaded once by the browser.
 
Share this answer
 
Comments
sacraj 14-Dec-11 23:31pm    
The image is not on the same page. The image is in different page.For example on profile page it is 50*50, in home page it is 30*30. User would upload only one photo. the code should be able to generate the different size.
[no name] 15-Dec-11 6:37am    
OK. There numerous examples here and elsewhere discussing image manipulation and resizing. Have you looked?

After the image is uploaded, resize it. What are you having difficulty with?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900