I have very large images (jpg) and i want to write a csharp program to loop through the files and reduce the size of each image by 75%.
I tried this:
Image thumbNail = image.GetThumbnailImage(800, 600, null, new IntPtr());
but the file size is still very large.
Is there anyway to create thumbnails and have the filesize be much smaller?
Usage:
That will compress Test.jpg with a quality of 10 and save it as Test2.jpg.
EDIT: Might be better as an extension method:
Usage: