Optimize for speed when rendering screenshots in Puppeteer and Chrome DevTools Protocol

Let's talk about the optimizeForSpeed parameter introduced in Chrome DevTools Protocol which will soon be supported by Puppeteer or even supported now at the time when you are reading the post.

Blog post1 min read

Written by

Dmytro Krasun

Published on

The optimizeForSpeed option is introduced in an update for Chromium, allows to use of faster encoding for images, and might increase the performance of taking screenshots by a lot.

Internally, the browser will use faster encoding for PNG, JPEG and WebP formats by restricting compression to zlib q1, which is rle encoding.

Try the option yourself to see if it improves performance and doesn’t change the quality of your screenshots.

Read more posts

Interviews, tips, guides, industry best practices, and news.

View all posts
Cloudflare Browser Rendering

Cloudflare Browser Rendering

Cloudflare recently launched a new Browser Rendering platform. I decided to dive into it and quickly check if I could use it in ScreenshotOne to provide a faster and better customer experience.

Read more

Automate website screenshots

Exhaustive documentation, ready SDKs, no-code tools, and other automation to help you render website screenshots and outsource all the boring work related to that to us.