How to make a picture specific width and height without losing scale?
I have asp.net c# application where I’m using a handler to manipulate with the different size of images. For example if I need the image with width 200 or 300 etc..
but If I need to make image size with width 300 and height 300 and keep proportion how to make it? also if it’s any way to find faces on images?
Is there any free component or specific ways how to accomplish it?
If you are controlling both the height and the width of the image, you can’t keep the proportions, unless they happen to match the existing image proportions.
A work around will be to resize the image so the largest dimension fits into your selected size and add a background to the smallest dimension till it fits.