Bug 323422

Summary: [WebDriver][BiDi] Honor ImageFormat type and quality in browsingContext.captureScreenshot
Product: WebKit Reporter: Timothy Olusanya <seunxplicit>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 288325    

Timothy Olusanya
Reported 2026-09-04 02:11:59 PDT
Captures are currently always encoded as PNG. Remaining work: thread format.type and format.quality through to the encoder so image/jpeg is honored, with unsupported types falling back to image/png per HTML's "a serialization of the bitmap as a file", which the BiDi encode step delegates to. WPT: capture_screenshot/format.py.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-09-11 02:12:13 PDT
Note You need to log in before you can comment on or make changes to this bug.