SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

Revert SKBitmap.Encode with SKPngEncoderOptions to previous behavior (2.88.8)

Open sungaila opened this issue 1 year ago • 2 comments

Description of Change

Reverts SKBitmap.Encode to previous behavior to use default PNG compression.

Until 2.88.8: ZLibLevel 6 is used for PNG compression. Since 3.0.0: ZLibLevel 0 is used for PNG compression.

Bugs Fixed

  • Fixes #3013

API Changes

None.

Behavioral Changes

Calling SKBitmap.Encode or SKPixmap.Encode (SKWStream, SKEncodedImageFormat, int) will result in a default PNG compression level (as in 2.88.8). The SKPngEncoderFilterFlags are unchanged.

Required skia PR

None.

PR Checklist

  • [ ] Has tests (if omitted, state reason in description)
  • [X] Rebased on top of main at time of PR
  • [ ] Merged related skia PRs
  • [ ] Changes adhere to coding standard
  • [ ] Updated documentation

sungaila avatar Sep 21 '24 10:09 sungaila

@dotnet-policy-service agree

sungaila avatar Sep 21 '24 10:09 sungaila

/azp run

mattleibow avatar Oct 22 '24 10:10 mattleibow

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

azure-pipelines[bot] avatar Oct 22 '24 10:10 azure-pipelines[bot]

/azp run

mattleibow avatar Oct 22 '24 14:10 mattleibow

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

azure-pipelines[bot] avatar Oct 22 '24 14:10 azure-pipelines[bot]