SkiaSharp
SkiaSharp copied to clipboard
Revert SKBitmap.Encode with SKPngEncoderOptions to previous behavior (2.88.8)
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
@dotnet-policy-service agree
/azp run
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.
/azp run
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.