I have used the code from this document :
It does what it should be doing. It lowers the quality and the img size
But for some reason when I use that lower quality image as a Thubmail (200px by 300px)
even only using 70% quality in the EncoderParameter it looks terrible,
every line in the image looks very pixelated, but when I see the full size of the lower quality image
it looks fine i hardly see any difference from the original image,
So im questioning if scalling down the image quality is the best way to create a Thumbnail,
Im not very familiar with image resizing.
Maybe scalling down the pixale size is better ?
I have tried this code :
Image Imgfile = Image.FromFile(Path); var NewImage = new Bitmap(300,200); using var a = Graphics.FromImage(NewImage); a.DrawImage( Imgfile, 0, 0, 300, 200);
this does scalle down the height and width to 300 x 200 but the Image size increased by 10x
the original image was 270kb and it turned into 1.2mb.