Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Yes—you can capture any number of portfolio homepages automatically. The dependable pattern is to keep a URL list, use Playwright to open each page at an explicitly chosen viewport, capture the viewport, full page, or a selected element, and save files with stable names. For scheduled or larger batches, a hosted service can remove browser maintenance. This guide builds the local workflow first, then shows when ScreenshotNeo is a better fit.

Choose what each screenshot should contain

Before writing code, define the capture scope. A screenshot is only useful when every page is captured for the same purpose.

Viewport screenshot

A viewport image records what fits in the visible browser window. It is useful for a portfolio gallery, social preview, or a consistent “first screen” review. It does not show content below the fold.

Full-page screenshot

A full-page image covers the page’s scrollable height. It is useful for documenting an entire case-study homepage, but very long pages can produce large image files and may expose content that loads only after scrolling.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • 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

Element screenshot

An element image isolates a component such as a hero, navigation bar, project card, or testimonial. You identify it with a CSS selector and capture only its bounding box.

Playwright documents all three scopes, along with saving to a file or returning image bytes for further processing: Playwright Screenshots documentation.

Prepare a repeatable capture plan

  • URL list: store one canonical URL per line or in a JavaScript array. Use stable, production URLs rather than links that change between sessions.
  • Viewports: choose widths that match your review—for example, one desktop and one mobile width. These are deliberate choices, not universal responsive-design standards.
  • State: decide whether cookie dialogs, animations, logged-in content, or lazy images should be present. Keep the state the same for every run.
  • Names: derive descriptive filenames from the site or project slug, and include the viewport when you capture more than one size.
  • Environment: use the same browser version, operating system, settings, hardware conditions, and headless mode whenever screenshots will be compared.

Install Playwright and create a batch script

The following Node.js example captures every URL at two selected viewport widths. It writes both a viewport image and a full-page image for each page, waits for the page to reach a usable state, and continues to the next URL if one page fails.

  1. Install Node.js, create a directory, and initialize it:
    mkdir portfolio-shots
    cd portfolio-shots
    npm init -y
    npm install playwright
    npx playwright install chromium
  2. Create capture.js:
const { chromium } = require('playwright');
const fs = require('fs/promises');

const urls = [
  'https://example.com/',
  'https://example.org/portfolio'
];

const viewports = [
  { name: 'desktop', width: 1440, height: 900 },
  { name: 'mobile', width: 390, height: 844 }
];

function slugFromUrl(rawUrl) {
  const u = new URL(rawUrl);
  const value = `${u.hostname}${u.pathname}`
    .replace(/[^a-z0-9]+/gi, '-')
    .replace(/^-|-$/g, '')
    .toLowerCase();
  return value || 'page';
}

(async () => {
  await fs.mkdir('shots', { recursive: true });
  const browser = await chromium.launch({ headless: true });

  try {
    for (const rawUrl of urls) {
      const slug = slugFromUrl(rawUrl);
      for (const viewport of viewports) {
        const context = await browser.newContext({
          viewport: { width: viewport.width, height: viewport.height },
          deviceScaleFactor: 1
        });
        const page = await context.newPage();

        try {
          await page.goto(rawUrl, { waitUntil: 'networkidle', timeout: 60000 });
          await page.screenshot({
            path: `shots/${slug}-${viewport.name}-viewport.png`,
            fullPage: false
          });
          await page.screenshot({
            path: `shots/${slug}-${viewport.name}-full.png`,
            fullPage: true
          });
          console.log(`Captured ${rawUrl} (${viewport.name})`);
        } catch (error) {
          console.error(`Failed ${rawUrl} (${viewport.name}): ${error.message}`);
        } finally {
          await context.close();
        }
      }
    }
  } finally {
    await browser.close();
  }
})();

Run it with:

node capture.js

The output directory contains deterministic names such as example-com-desktop-viewport.png. Playwright’s basic file form is page.screenshot({ path: 'screenshot.png' }); setting fullPage: true changes the scope to the complete scrollable page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Capture one element instead of the whole page

Use a selector that exists on every target page, or maintain a per-site selector map when portfolio designs differ.

const card = page.locator('[data-testid="featured-project"]');
await card.waitFor({ state: 'visible', timeout: 15000 });
await card.screenshot({ path: `shots/${slug}-featured-project.png` });

A stable data-testid is less fragile than a long chain of classes. If the selector is missing, log the URL and save a diagnostic page screenshot rather than silently producing an empty result.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • 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

Make rendering predictable

Wait for the right condition

networkidle can be appropriate for pages that finish loading network resources, but analytics, live chat, or streaming requests may prevent it from becoming idle. In that case, wait for a known selector or use a bounded delay:

await page.goto(rawUrl, { waitUntil: 'domcontentloaded', timeout: 60000 });
await page.locator('main').waitFor({ state: 'visible', timeout: 20000 });
await page.waitForTimeout(1000);

Use a selector wait when possible; a delay is a fallback for animation or late content and should be kept as short as your pages allow.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Account for lazy-loaded images

Full-page captures may include images that load only as they enter the viewport. Scroll through the document before capturing when the page requires it:

await page.evaluate(async () => {
  await new Promise(resolve => {
    let y = 0;
    const step = 600;
    const timer = setInterval(() => {
      window.scrollBy(0, step);
      y += step;
      if (y >= document.body.scrollHeight) {
        clearInterval(timer);
        window.scrollTo(0, 0);
        resolve();
      }
    }, 100);
  });
});

Test this behavior on your own pages; some sites use intersection observers or custom loading logic that needs a page-specific trigger.

Control animations and dynamic data

Animated banners, rotating testimonials, timestamps, ads, and personalized content can change pixels between runs. Disable or hide those elements with page CSS, wait for a stable state, or capture a defined component instead of the entire page.

Playwright warns that output can vary with the host operating system, browser version, settings, hardware, power source, and headless mode. Keep baseline generation and later comparisons in the same environment when visual consistency matters: Playwright visual comparisons documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use screenshots for visual regression testing

If your goal is detecting unintended design changes rather than collecting images, use Playwright Test’s screenshot assertions. The first run creates reference screenshots; later runs compare new captures to those references.

Rank #3
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • 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.
import { test, expect } from '@playwright/test';

test('portfolio homepage is unchanged', async ({ page }) => {
  await page.goto('https://example.com/', { waitUntil: 'networkidle' });
  await expect(page).toHaveScreenshot('portfolio-home.png', { fullPage: true });
});

toHaveScreenshot() waits until two consecutive page screenshots match before comparing with the expectation. Review intentional changes before accepting updated baselines. Do not treat one viewport as proof that every responsive layout is unchanged; define separate tests for the widths you actually support.

Process failures without losing the batch

A production batch should record failures and continue, while still returning a non-success status for monitoring. Add a results array and write it as JSON:

const results = [];
// after each attempt:
results.push({ url: rawUrl, viewport: viewport.name, ok: true });
// in catch:
results.push({ url: rawUrl, viewport: viewport.name, ok: false, error: error.message });
// before exit:
await fs.writeFile('shots/results.json', JSON.stringify(results, null, 2));

For scheduled jobs, retain the URL, viewport, timestamp, error message, and output path. This makes a timeout distinguishable from a selector problem or an authentication failure.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Local Playwright or a hosted capture service?

Consideration Local Playwright Hosted screenshot service
Browser operation You install, update, and run the browser. The provider operates the capture infrastructure.
Control Direct access to page code, selectors, scripts, cookies, and custom logic. Control depends on the provider’s documented options.
Scaling You manage concurrency, queues, scheduling, and browser resources. Batch and asynchronous features may reduce your operational work; verify current limits.
Output Files or image buffers that your code can process. Usually an HTTP response or job result; check format and retention rules.
Maintenance You own browser-version and environment consistency. You trade that maintenance for provider dependency and API cost.

There is no evidence-based universal page count at which one approach becomes cheaper. Decide from frequency, concurrency, network access, compliance requirements, and who will maintain the browser runtime.

Or skip the browser setup

ScreenshotNeo is a hosted website screenshot API and MCP server. One GET request returns PNG, JPEG, WebP, or PDF. It is the first service to try when you want managed portfolio batches because it removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, timeouts, failed loads, and cache hits are not billed; and its MCP tools let Claude, Cursor, or another MCP client call take_screenshot, get_page_info, and capture_pdf.

Basic cURL:

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 complete parameter reference in the ScreenshotNeo documentation. The same endpoint accepts options for full-page capture, CSS-element selection, dark mode, device presets or custom viewports, retina scale, PDF paper settings and page ranges, custom CSS and JavaScript, clicks, selector or network-idle waits, ad/tracker/request blocking, headers, cookies, user agents, Authorization, timezone, geolocation, transparent backgrounds, resizing, chosen cache TTLs, signed image links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, usage reporting, and an OpenAPI specification. Parameter names used by other screenshot APIs also work, which can simplify migration.

Python

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
const fs = await import('node:fs/promises');
await fs.writeFile('shot.webp', Buffer.from(await res.arrayBuffer()));

Every response identifies the page result and billing outcome with X-Page-Verdict and X-Billed headers. That lets a batch job distinguish a clean capture from a bot check, blank page, timeout, failed load, or cache hit before storing it as a valid portfolio image.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • 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

Plans and predictable cost

Plan Allowance Price
Free 1,000 shots/month $0, no card
Starter 3,000 shots $5
Growth 15,000 shots $15
Pro 60,000 shots $39
Scale 250,000 shots $99
Business 1,000,000 shots $249

Yearly billing gives two months free, and every feature is included on every plan. Create a free account with 1,000 screenshots a month and no card required.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting checklist

Navigation times out

Cause: a slow origin, an endless third-party request, or an overly strict wait condition. Increase the bounded timeout, switch from networkidle to domcontentloaded, then wait for a page-specific selector.

The image is blank or incomplete

Cause: the screenshot ran before the main content or lazy images appeared. Wait for a visible content selector, scroll to trigger lazy loading, and verify that the page does not require authentication or a bot challenge.

A selector cannot be found

Cause: responsive markup, a changed class name, an iframe, or a component rendered later. Prefer a stable test attribute, wait for it, and inspect the page at the same viewport used by the script. Content inside an iframe requires selecting the appropriate frame first.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Runs differ between machines

Cause: different browser or OS rendering, fonts, device scale, hardware, power state, or headless mode. Pin the browser/runtime and run both baseline and comparison jobs in the same environment.

Files overwrite one another

Cause: filenames are based only on a generic name such as screenshot.png. Include a normalized host/path slug and viewport in every filename, and keep the original URL in a results manifest.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【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.

The batch is too slow

Cause: opening a new browser for every URL or capturing unnecessarily large full pages. Reuse one browser, limit concurrency to what the host can handle, capture only the required scope, and use caching or a hosted batch endpoint when appropriate.

Operational and cost notes

  • Viewport size, full-page height, device scale, waits, scripts, and blocked resources all affect runtime and output size.
  • Keep credentials out of source files; load them from environment variables or a secret manager.
  • Respect site access rules and obtain permission before capturing private or authenticated portfolio content.
  • Store only the images and metadata you need, especially when pages contain personal information.
  • For visual regression, review pixel differences as a human: a changed timestamp or intentional redesign is not automatically a defect.

Frequently Asked Questions

Can I capture several portfolio URLs in one run?

Yes. Put the URLs in the script’s array (or an input file), loop over them, and give each result a URL-derived filename. The example continues after an individual failure.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Should I use PNG, JPEG, or WebP?

Choose the format required by your publishing or review pipeline. Playwright can write screenshots to files or return bytes; ScreenshotNeo can return PNG, JPEG, WebP, or PDF.

How do I prove a page is responsive?

Capture the specific viewport widths your audience uses and compare each separately. One desktop image cannot establish behavior at other widths.

What should I do with pages that require login?

Use an authorized test account and supply the session state or credentials securely. Never place passwords in a committed script or expose private page captures.

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.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.