I want to get an image from a user in Asp.net MVC and resize it to a specific size but I have to resize it to a certain size without deformation. i do not have problem if some part of the image cropped but I do not want if user uploads 4000X2000px image I crop 600X600 of it and lose many part of the image.
how can I do that? is there any algorithm according to that? or is there any source code in .net?