Use PNG when you need transparency, want Puppeteer’s default output, or prefer to avoid JPEG’s lossy quality setting. Choose JPEG when you want lossy compression with an adjustable quality value. Puppeteer’s current API type definition also lists WebP, but confirm your installed version supports it before using it.
PNG vs. JPEG in Puppeteer
| Need | Choose | What Puppeteer documents |
|---|---|---|
| Transparent screenshot | PNG | omitBackground: true hides the default background and permits transparency; PNG is the default format. |
| Adjustable compression quality | JPEG | The quality option accepts a value from 0 to 100 and does not apply to PNG. Chromium describes screenshot compression quality as JPEG-only. |
| Keep the default format | PNG | Puppeteer defaults type to 'png'. |
| Use WebP | Check your installed Puppeteer version | The current API type definition lists 'webp' alongside PNG and JPEG; older versions may differ. |
The official API documentation does not establish a universal JPEG quality value or publish a controlled PNG-versus-JPEG file-size or visual-fidelity benchmark. Test representative pages and settings if output size or appearance is critical.
Save a page screenshot in PNG or JPEG
Install Puppeteer and launch a browser as you normally do. The following examples assume page is an open Puppeteer Page.
PNG: default and transparency
// PNG is Puppeteer's default screenshot type.
await page.screenshot({ path: 'page.png' });
// Transparent PNG, provided the page content itself has no opaque background.
await page.screenshot({
path: 'logo.png',
type: 'png',
omitBackground: true,
});
omitBackground hides the browser’s default background; it cannot make an opaque page or element background transparent. Remove or override that page styling if you need transparency in the result.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
#1 Best Overall
- CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
- WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
- A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents
JPEG: choose a quality value
await page.screenshot({
path: 'page.jpg',
type: 'jpeg',
quality: 80,
});
The documented range is 0–100. The API does not prescribe one best value, and the number alone does not guarantee a particular file size or visual result. Compare output from your own pages before settling on a setting.
Keep the file extension and format aligned
When you provide path, Puppeteer infers the screenshot type from the file extension. A .png path selects PNG and a .jpg path identifies JPEG. You can also set type explicitly; keeping both consistent makes the intended output clear.
Rank #2
- CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
- SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
For WebP, check the API reference for the Puppeteer version installed in your project. The current type definition includes WebP, but format availability is version-sensitive.
Capture a full page, a region, or an element
These options change what Puppeteer captures, not the basic PNG-versus-JPEG decision:
Rank #3
- Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
- Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
- Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
- In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
- Ultra-thin bezels: Maximize your viewing experience with thin bezels.
fullPage: truecaptures the full page rather than only the current viewport.cliplimits the screenshot to a specified region.- For a particular element, use Puppeteer’s element screenshot API, such as
elementHandle.screenshot().
Choose the output format using the same rules: PNG for transparency or the default behavior, JPEG when you want its quality control.
Troubleshooting
- The image is not transparent: Set
omitBackground: trueand check that the page and target element do not paint an opaque background. - The output format is unexpected: Check the
pathextension and any explicittype; make them agree. - Changing quality has no effect: Puppeteer documents
qualityfor JPEG, not PNG. Settype: 'jpeg'and use a JPEG extension if you need that control. - WebP is rejected or unavailable: Verify the installed Puppeteer version’s screenshot API; the current type definition is not a guarantee for older releases.
Or skip the browser setup
ScreenshotNeo returns a PNG, JPEG, WebP, or PDF with one GET request. Cookie banners are accepted and removed before capture; known consent platforms, newsletter popups, and chat widgets can also be removed. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, with the response indicating the page verdict and billing status. Its MCP server lets AI agents use screenshot tools. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for the request options. Sign up for 1,000 free screenshots a month, with no card required.
Rank #4
- CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
- SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
- MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
- KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
- INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
Frequently Asked Questions
Does Puppeteer support WebP screenshots?
The current Puppeteer API type definition lists WebP, but support can depend on the installed version. Check that version’s API reference.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Quick Recap
Best Value
- 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
- 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
- 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

