How to Crop a Image in asp.net while uploading
How to crop a image in asp.net while uploading like C#Corner does in its profile picture option
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Maen BadwanRank #2,520 · 556 reputationPosted May 18, 2017, 6:31 AM EDT
You can use this class in a web-service, pass your image data to the service as bas64string, and then crop the image using the CropCommand class.
After this the service returns the cropped image data with any form you want.
You can find more details about the CropCommand class here:
https://www.leadtools.com/help/leadtools/v19m/dh/l/imageprocessing-cropcommand.html
Sameer ShaikRank #1,826 · 812 reputationPosted May 15, 2017, 2:43 AM EDT