skip to Main Content
(31) 98739-9637

Recortar imagem com c#

Description

Downsizing a large image can cause oddly sampled pixels in the top rows of pixels (I only noticed it in the top rows at least).

I tested multiple samplers. All of them displayed similar results.

Steps to Reproduce

using (var image = Image.Load(flowersJpg))
{
    image.Mutate(i => i.Resize(new ResizeOptions
    {
        Size = new Size(300, 300),
        Mode = ResizeMode.Crop
    }));

    image.SaveAsJpeg(outputStream);
}

 

fonte exata: https://github.com/SixLabors/ImageSharp/issues/1006

 

Deixe uma resposta

Back To Top
Abrir WhatsApp
Posso te ajudar?
Olá, posso te ajudar?