0

Possible Duplicate:
How to crop an image using C#?
Resize a picture to a fixed size

I am trying to achieve what facebook is doing with users' images. That is, you upload a full sized picture, but in the profile you have a smaller & cropped image so it will be nicer in the design of the page.

where can I find such algorithm in c#?

thanks!

3
  • You can use the Bitmap library and crop it very easily. (How you store and retrieve it after (cashed vs. on-demand) is up to you). Commented Nov 23, 2011 at 19:09
  • @DavidStratton: Looks like OP is asking to crop not resize... Commented Nov 23, 2011 at 19:10
  • I picked the wrong one from the list... My bad, but this question has been asked. Thank you, @docmanhattan for getting the correct previous question. I stand by my vote to close, even if I picked the wrong one. Commented Nov 23, 2011 at 19:13

1 Answer 1

1

I worked on something similar a while back. For starters, take a look at Miron Abramson's blog post. Also, you may want to consider doing the cropping and resizing on the client side first before interacting with the server or third party asset repo (s3, etc.) Here's one third party tool that might meet your need.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.