For a saved 2× screenshot of a web page on a Mac, use Playwright: keep the browser viewport at the CSS dimensions you want, set deviceScaleFactor: 2, and capture with scale: 'device'. Add fullPage: true to include the entire scrollable page. For example, a 1280-CSS-pixel-wide layout will produce an image 2560 pixels wide.
Capture a full web page at 2× with Playwright
Playwright gives you explicit control over the page’s CSS viewport and the saved image’s pixel scale. Install it in a Node.js project, then run this script:
As an Amazon Associate I earn from qualifying purchases.
-
In Terminal, create a project directory, enter it, and install Playwright:
mkdir retina-shot && cd retina-shot
npm init -y
npm install playwright
npx playwright install chromium#1 Best Overall
SaleApple 2025 MacBook Pro Laptop with Apple M5 chip with 10‑core CPU and 10‑core GPU: Built for AI, 14.2-inch Liquid Retina XDR Display, 16GB Unified Memory, 1TB SSD Storage; Space Black- SUPERCHARGED BY M5 — The 14-inch MacBook Pro with M5 brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. Featuring all-day battery life and a breathtaking Liquid Retina XDR display with up to 1600 nits peak brightness, it’s pro in every way.*
- HAPPILY EVER FASTER — Along with its faster CPU and unified memory, M5 features a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance. So you can blaze through demanding workloads at mind-bending speeds.
- BUILT FOR APPLE INTELLIGENCE — Apple Intelligence is the personal intelligence system that helps you write, express yourself, and get things done effortlessly. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
- ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.
- APPS FLY WITH APPLE SILICON — All your favorites, including Microsoft 365 and Adobe Creative Cloud, run lightning fast in macOS.*
-
Save the following as
screenshot.js. Replace the example address with the page you want to capture:const { chromium } = require('playwright');(async () => {
const browser = await chromium.launch();
try {
const context = await browser.newContext({
viewport: { width: 1280, height: 900 },
deviceScaleFactor: 2,
});
const page = await context.newPage();
await page.goto('https://example.com', { waitUntil: 'networkidle' });
await page.screenshot({
path: 'page-2x.png',
fullPage: true,
scale: 'device',
});
} finally {
await browser.close();
}
})(); -
Run it with
node screenshot.js. The image is saved aspage-2x.pngin the current directory.
In Playwright, fullPage: true captures the full scrollable document rather than just the visible viewport. scale: 'device' makes output pixels correspond to device pixels; with a device scale factor of 2, each CSS pixel maps to two pixels along each image dimension. See the Playwright screenshot documentation and screenshot API options.
Rank #2
- FAST RUNS IN THE FAMILY — The 16-inch MacBook Pro with the M5 Pro or M5 Max chip brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. With all-day battery life, double the starting storage,* and a breathtaking Liquid Retina XDR display, it’s pro in every way.*
- BUCKLE UP — Along with a next-generation CPU, faster unified memory, and up to 2x faster SSD storage,* M5 Pro and M5 Max feature a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance and on-device training capabilities. So you can blaze through demanding workloads at mind-bending speeds.
- BUILT FOR AI — Apple silicon, and every major component that powers it, is designed to run demanding on-device AI workloads like LLM inference and training. And Apple Intelligence helps you write, express yourself, and get things done effortlessly with groundbreaking privacy protections at every step.*
- ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.*
- MACOS RUNS APPS FAST — All your go-to apps run lightning fast in macOS, including built-in apps like FaceTime and Messages. Plus, built-in virus protection and free software updates help keep your Mac running smoothly and securely.
Choose the CSS viewport separately from the 2× scale
The viewport width controls the page’s responsive layout; the device scale factor controls the density of the saved pixels. Set the viewport to the CSS width you want to reproduce, then set the scale factor to 2. A 1280-pixel CSS viewport produces a 2560-pixel-wide 2× image. For a full-page capture, the image height depends on the rendered document’s scrollable height, not just the 900-pixel viewport height in the example.
This distinction explains why a screenshot can look sharp on a Retina display but still have only one saved image pixel per CSS pixel. Apple’s archived web-image guidance describes 1× as standard resolution and 2× as high resolution, noting that at 2× density there are four device pixels within each CSS-pixel area: two across and two down. That statement concerns pixel density, not a fourfold increase in either dimension. See Apple’s archived Retina web-image guidance.
Capture only the visible viewport or reduce the image scale
Save only what is on screen
Remove fullPage: true from the screenshot options to capture the current viewport instead of the whole scrollable page. At 1280 × 900 CSS pixels and 2× device scale, the nominal output is 2560 × 1800 pixels.
Save one output pixel per CSS pixel
Keep the same viewport and device scale factor, but use scale: 'css' in page.screenshot(). That produces one output pixel per CSS pixel rather than a 2× image.
Rank #3
- FAST RUNS IN THE FAMILY — The 16-inch MacBook Pro with the M5 Pro or M5 Max chip brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. With all-day battery life, double the starting storage,* and a breathtaking Liquid Retina XDR display, it’s pro in every way.*
- BUCKLE UP — Along with a next-generation CPU, faster unified memory, and up to 2x faster SSD storage,* M5 Pro and M5 Max feature a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance and on-device training capabilities. So you can blaze through demanding workloads at mind-bending speeds.
- BUILT FOR AI — Apple silicon, and every major component that powers it, is designed to run demanding on-device AI workloads like LLM inference and training. And Apple Intelligence helps you write, express yourself, and get things done effortlessly with groundbreaking privacy protections at every step.*
- ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.*
- MACOS RUNS APPS FAST — All your go-to apps run lightning fast in macOS, including built-in apps like FaceTime and Messages. Plus, built-in virus protection and free software updates help keep your Mac running smoothly and securely.
Use Safari to preview a page at a chosen pixel ratio
Safari’s Responsive Design Mode is useful for checking how a page adapts to different screen sizes and pixel ratios. In Safari, open the Develop menu and choose Enter Responsive Design Mode, or press Control-Command-R. Select a viewport and pixel ratio to preview the page; Apple notes that pixel ratio can affect images and styles. See Apple’s Responsive Design Mode documentation.
Responsive Design Mode is a preview and testing workflow. The Apple documentation cited here does not establish a direct Safari command for exporting the full web page as a 2× PNG. If you need a reproducible full-page image file with explicit pixel scaling, use the Playwright method above.
Troubleshoot common capture problems
-
The output is not twice as wide as expected. Check that the browser context has
deviceScaleFactor: 2and the screenshot call hasscale: 'device'. The viewport is measured in CSS pixels; a 1280-pixel viewport at 2× should yield 2560 output pixels across. -
The image shows only the top of the page. Confirm that
fullPage: trueis present. Without it, Playwright captures the viewport only.Rank #4
SaleApple 2025 MacBook Pro Laptop with Apple M5 chip with 10‑core CPU and 10‑core GPU: Built for AI, 14.2-inch Liquid Retina XDR Display, 24GB Unified Memory, 1TB SSD Storage; Space Black- SUPERCHARGED BY M5 — The 14-inch MacBook Pro with M5 brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. Featuring all-day battery life and a breathtaking Liquid Retina XDR display with up to 1600 nits peak brightness, it’s pro in every way.*
- HAPPILY EVER FASTER — Along with its faster CPU and unified memory, M5 features a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance. So you can blaze through demanding workloads at mind-bending speeds.
- BUILT FOR APPLE INTELLIGENCE — Apple Intelligence is the personal intelligence system that helps you write, express yourself, and get things done effortlessly. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
- ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.
- APPS FLY WITH APPLE SILICON — All your favorites, including Microsoft 365 and Adobe Creative Cloud, run lightning fast in macOS.*
-
Navigation waits indefinitely. The example uses
waitUntil: 'networkidle'. Pages that keep network requests active may never reach that condition. Choose a navigation wait condition appropriate for the site, or wait for a specific page element before capturing. -
Content is missing because it loads later. A page may render content after the initial navigation. Wait for a relevant selector or a suitable delay before calling
page.screenshot(). The required wait depends on how the target site loads its content. -
Playwright cannot launch Chromium. Install the browser build for the installed Playwright package with
npx playwright install chromium, then rerun the script.
Or skip the browser setup
ScreenshotNeo can return a screenshot through one GET request. This example saves a WebP image of a page at a 1280-CSS-pixel viewport width and 2× retina scale. See the ScreenshotNeo API documentation.
Best Value
- SUPERCHARGED BY M5 — The 14-inch MacBook Pro with M5 brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. Featuring all-day battery life and a breathtaking Liquid Retina XDR display with up to 1600 nits peak brightness, it’s pro in every way.*
- HAPPILY EVER FASTER — Along with its faster CPU and unified memory, M5 features a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance. So you can blaze through demanding workloads at mind-bending speeds.
- BUILT FOR APPLE INTELLIGENCE — Apple Intelligence is the personal intelligence system that helps you write, express yourself, and get things done effortlessly. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
- ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.
- APPS FLY WITH APPLE SILICON — All your favorites, including Microsoft 365 and Adobe Creative Cloud, run lightning fast in macOS.*
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -d viewport_width=1280 -d retina=true -o shot.webp
ScreenshotNeo accepts and removes cookie-consent banners, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server lets AI agents use screenshot, page-info, and PDF-capture tools. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots. Learn more at ScreenshotNeo, or sign up for the free plan.
Performance and output-size considerations
A 2× image has four times as many pixels as a 1× image with the same CSS dimensions, because both width and height double. Full-page captures can therefore become large, particularly on long documents. Use a viewport-only capture when you need only the visible area, or use scale: 'css' when a 1× output is sufficient. The final height of a full-page screenshot depends on the page’s rendered scrollable height.
Frequently Asked Questions
How do I take a 2× screenshot on a Mac?
With Playwright, set the context’s deviceScaleFactor to 2 and use scale: 'device' in page.screenshot().
Can Safari save a full web page as a 2× PNG?
Safari Responsive Design Mode previews pages at selected viewport sizes and pixel ratios. The Apple documentation cited here does not document a direct full-page 2× PNG export command.
Why does a 2× screenshot have four times as many pixels?
Its width and height each double, so the total pixel count is four times that of a 1× image with the same CSS dimensions.
Quick Recap
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.




