saucecontrol / PhotoSauce

MagicScaler high-performance, high-quality image processing pipeline for .NET
http://photosauce.net/
MIT License
569 stars 49 forks source link

Compressed image size is bigger than original one #94

Closed h-alk closed 1 year ago

h-alk commented 1 year ago

Hi Clinton,

Have a simple method for compressing the JPG images:

public void CompressImage(Stream input, Stream output)
{
    var settings = new ProcessImageSettings
    {
        ResizeMode = CropScaleMode.Max,
        EncoderOptions = new JpegEncoderOptions(75, ChromaSubsampleMode.Subsample420, true)
    };

    MagicImageProcessor.ProcessImage(input, output, settings);
}

During the testing I mentioned that my input test file size is around 110KB and the output one is 140KB. Do you have any idea why it may happen? Thank you.