Link to home
Start Free TrialLog in
Avatar of Skytide
Skytide

asked on

Centered Square Thumbnail Image in Asp.net - How can I do this?

When users upload a gif or jpg, one of the thumbnails I want to create is a square 70x70 thumbnail. So if the image is not already square, I will have to somehow center the image, resize the height or width (depending on which one is the smallest), and then crop the top and bottom to make the square thumbnail. Anyone know how to do this, or know of a control that can do this?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of REA_ANDREW
REA_ANDREW
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sorry ignore the PRE tags lol, I just copied the code from that article I showed you into this page.
Avatar of Skytide
Skytide

ASKER

Cool. Thanks!