Expose png compression level (#1220)
`encodeToData` has been deprecated in Skia some time ago: https://skia.googlesource.com/skia/+/refs/heads/main/RELEASE_NOTES.md#milestone-114 Previously, for png format the `quality` was ignored as it is a lossless format. The current skiko behavior for png format converts quality to zlib compression level which makes the default value to 9 compared to the default value 6 in skia. Also, it was confusing as with lower quality you expect smaller size which was not the case for png images. Quality stayed the same but the size increased as the compression level was smaller
Showing
Please register or sign in to comment