stable (1.2) latest (tip-of-tree) v8-inspector (node) Home Domains Accessibility Animation ApplicationCache Audits Browser CSS CacheStorage Console DOM DOMDebugger DOMSnapshot DOMStorage Database Debugger DeviceOrientation Emulation HeapProfiler IO IndexedDB Input Inspector LayerTree Log Memory Network Overlay Page Performance Profiler Runtime Schema Security ServiceWorker Storage SystemInfo Target Tethering Tracing
Chrome DevTools Protocol Viewer - latest (tip-of-tree)

Audits Domain

Audits domain allows investigation of page violations and possible improvements.

Experimental

Methods

Audits.getEncodedResponse

Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.

Parameters
requestId
Network.RequestId Identifier of the network request to get content for.
encoding
string The encoding to use. Allowed values: webp, jpeg, png.
quality
number The quality of the encoding (0-1). (defaults to 1)
sizeOnly
boolean Whether to only return the size information (defaults to false).
Return object
body
string The encoded body as a base64 string. Omitted if sizeOnly is true.
originalSize
integer Size before re-encoding.
encodedSize
integer Size after re-encoding.