chore(webkit): encode jpeg screenshots natively via Page.snapshotRect#41171
chore(webkit): encode jpeg screenshots natively via Page.snapshotRect#41171yury-s wants to merge 1 commit into
Conversation
Page.snapshotRect now accepts format and quality, so pass them through and let WebKit encode JPEG directly instead of fetching a PNG and re-encoding with jpeg-js in Node. Drops the unused pngjs/jpeg-js imports.
Test results for "MCP"7266 passed, 1119 skipped Merge workflow run. |
Test results for "tests 1"1 flaky39520 passed, 775 skipped Merge workflow run. |
Test results for "tests others"1 fatal errors, not part of any test 7 flaky19964 passed, 664 skipped Merge workflow run. |
Test results for "tests 2"25 failed 32 flaky88746 passed, 4113 skipped Merge workflow run. |
Summary
Page.snapshotRectnow acceptsformatandquality, so WebKit encodes JPEG natively instead of returning a PNG that we re-encode withjpeg-jsin Node.pngjs/jpeg-jsimports and the PNG→JPEG round-trip.