I want to resize all my images to 50 kb. It doesn't matter what the height and width will be.
I know how to resize using a static height and width:
public static Image resizeImage(Image imgToResize, Size size)
{
return (Image)(new Bitmap(imgToResize, size));
}
yourImage = resizeImage(yourImage, new Size(50,50));
How do i resize an image without specifying a static height and width? but by specifying a new size in kb