SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[BUG] Encoding/Decoding PNG image produces artifacts in the output after upgrading to SkiaSharp 2.88.0.

Open AlexNosk opened this issue 2 years ago • 1 comments

Description

After encoding/decoding PNG image, the output image has artifacts. Everything works fine in 2.80.1 version of SkiaSharp. images.zip

Code

using SkiaSharp;

using SKBitmap bmp = SKBitmap.Decode(@"C:\Temp\image1.png");
using SKFileWStream output = new SKFileWStream(@"C:\Temp\out.png");
bmp.Encode(output, SKEncodedImageFormat.Png, 100);

Basic Information

  • Version with issue: 2.88.0
  • Last known good version: 2.80.1
  • IDE: VS 2022

Screenshots

image

AlexNosk avatar Jul 13 '22 07:07 AlexNosk

More reports of this bug here: https://github.com/mono/SkiaSharp/issues/2132

jxlarrea avatar Jul 14 '22 07:07 jxlarrea

Duplicate of #2095

mattleibow avatar Aug 13 '22 19:08 mattleibow