DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
FREEDOM251

Freedom251 › Blog › Indian SaaS

How to Make Website Thumbnails for a Directory of Indian SaaS Companies

By Freedom251 Team · · 6 min read

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

Use a browser-rendered screenshot of each company’s listing URL, capture every site with the same viewport and card ratio, and save the image under a stable listing ID. Playwright lets you run this workflow yourself; a managed screenshot API can handle rendering instead. Either way, treat submitted URLs as untrusted, plan how thumbnails will be refreshed, and check that each image shows the right site.

Choose a consistent thumbnail workflow

A website thumbnail is a browser-rendered view of a URL. For directory cards, a consistent viewport capture is usually easier to compare than full-page images, which can vary greatly in length. Playwright supports viewport, element, and full-page screenshots in PNG, JPEG, or WebP. Playwright’s screenshot documentation explains the available capture methods.

As an Amazon Associate I earn from qualifying purchases.

Keep the capture viewport and the card’s display ratio consistent across listings. The right pixel dimensions depend on your directory’s layout, so set them from the card design and check the result at its actual on-page display size. Save each result against a stable listing identifier, not a company name that may later change.

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

Generate thumbnails yourself with Playwright

This Node.js example navigates to one listing URL and saves a viewport screenshot as WebP. Install Playwright and its browser first, then run the script with a URL and a stable listing ID:

#1 Best Overall
Sale
HTML and CSS: Design and Build Websites
  • HTML CSS Design and Build Web Sites
  • Comes with secure packaging
  • It can be a gift option
npm install playwright
npx playwright install chromium
// capture.mjs
import { chromium } from 'playwright';

const target = process.argv[2];
const listingId = process.argv[3];

if (!target || !listingId) {
  throw new Error('Usage: node capture.mjs <listing-url> <listing-id>');
}

const browser = await chromium.launch({ headless: true });
try {
  const page = await browser.newPage({
    viewport: { width: 1280, height: 800 },
    deviceScaleFactor: 1,
  });
  await page.goto(target, { waitUntil: 'load', timeout: 30000 });
  await page.screenshot({
    path: `thumbnails/${listingId}.webp`,
    type: 'webp',
  });
} finally {
  await browser.close();
}

Create the thumbnails directory before running this script. For example, node capture.mjs https://example.com listing-123 writes thumbnails/listing-123.webp. In a real service, validate the URL before navigation and ensure the output path is derived only from a trusted listing ID, not an arbitrary user-supplied filename.

Choose the capture scope

  • Viewport: A practical default for uniform directory cards; it captures the visible browser area.
  • Element: Capture a particular page element when the site’s main content is consistently identifiable. Selector differences across unrelated company sites can make this brittle.
  • Full page: Use when the whole page matters. Long pages create thumbnails with very different content and proportions, so they may be harder to compare in a card grid.

Playwright can also return screenshot bytes for post-processing rather than writing directly to a path. See its screenshot documentation for viewport, full-page, element, and output options.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Its one-call API can return an image or PDF from a URL; this cURL example saves a WebP screenshot:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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 request options. Cookie banners are accepted and removed along with known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers identify the page verdict and billing status. Its MCP server gives AI agents tools to take screenshots, get page information, and capture PDFs. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for free and get 1,000 screenshots a month with no card.

Store, display, and refresh images

Keep card framing predictable

Use the same capture viewport and display ratio for every listing, then inspect representative results at the size visitors will actually see. A viewport shot often suits a directory card better than a full-page capture, but the directory’s design should decide the final dimensions and crop behavior.

Choose an image format based on the result

PNG, JPEG, and WebP are available with Playwright. Modern formats such as WebP and AVIF may compress better than PNG or JPEG, which can reduce file size and download time; the result varies by image and delivery context. Test at the card’s display size so compression does not make text or interface details hard to read. web.dev’s image-format guidance discusses modern formats.

Use a stable key and an explicit refresh policy

Use a directory listing ID as the storage key so a company rename does not orphan its image. Generate a thumbnail when a listing is created and provide an operator-triggered refresh path. Sites change or become unreachable, so review captures periodically or when a listing is reported as outdated. Keep capture jobs and refresh scheduling separate from the web request that accepts or displays a listing; a slow third-party website should not make directory pages wait for browser navigation.

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

Protect the renderer from unsafe URLs

A server that opens URLs supplied by directory submitters can be abused to make requests to destinations the submitter chooses. OWASP recommends validating destinations, preferring allowlists when the expected hosts are known, and restricting network access. Its SSRF guidance cautions: “Do not accept complete URLs from the user because URL are difficult to validate and the parser can be abused depending on the technology used as showcased by the talk of Orange Tsai.” Read the OWASP Server Side Request Forgery Prevention Cheat Sheet.

  • When practical, accept or derive a hostname and path under a controlled validation policy rather than trusting an arbitrary complete URL.
  • Apply network-layer egress restrictions so the browser cannot reach sensitive internal services or addresses.
  • Run captures in a worker with strict timeouts, resource limits, and a controlled retry queue. These are prudent implementation safeguards for browser jobs, not fixed settings prescribed by OWASP.
  • Review both the image and any extracted metadata after capture. A browser can successfully render a parked domain, a 404 page, or unrelated content.

Choose between self-hosting and a managed service

Consideration Self-hosted Playwright Managed screenshot service
Rendering Your application controls browser navigation and capture options. Playwright documentation. A service exposes a capture API; exact controls vary by provider. Dirstarter’s ScreenshotOne integration documents one directory-oriented example.
Operations You operate browser workers, retries, storage, and refresh scheduling. The provider may handle rendering. Check its current storage, caching, limits, refresh behavior, and failure reporting.
Metadata Implement title, favicon, or social-image extraction separately if you need it. Some directory-oriented APIs advertise screenshot and metadata endpoints; verify the provider’s current offer.
Security You control egress and URL validation, and must own that security work. A third-party renderer receives target URLs; review its data-handling terms and security controls.
Cost and service quality Not compared by the cited sources. Not compared by the cited sources; check current provider terms directly.

Dirstarter documents a managed pattern using ScreenshotOne for screenshots and S3 for directory media. This establishes an integration example, not a comparative finding about price, uptime, or image quality. ScreenshotNeo is another API option, with clean-shot handling and billing based on clean captures, described above.

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

Troubleshoot common capture problems

  • The navigation times out: A target may be slow, unavailable, or waiting on resources that never settle. Keep a finite timeout, record the failure, and retry through a controlled queue rather than holding up a directory request.
  • The image is blank or shows a loading state: The site may need more time or depend on client-side rendering. Consider waiting for a meaningful selector or a short, bounded delay, then inspect the output. Do not wait indefinitely for all network activity on pages with persistent connections.
  • The thumbnail shows the wrong content: The URL may redirect, be parked, or return a 404 or bot-check page. Verify the final page and screenshot before treating the capture as a valid company preview.
  • Images do not fit the cards: Check that all captures use the intended viewport and that the front end applies the same display ratio and crop rule. Choose viewport or full-page capture according to the intended card content.
  • Capture workers make unexpected requests: Treat this as a URL-validation and egress-control issue. Tighten destination validation and network restrictions before accepting more submissions.
  • Images load slowly for visitors: Check file size and delivery format at the actual card size. WebP or AVIF may reduce transfer size, but compare the visual result for your particular pages rather than assuming a fixed saving.

Frequently asked questions

Should every directory thumbnail be a full-page screenshot?

No. A consistent viewport is generally easier to compare in cards. Use a full-page capture when the complete page is useful to the reader and the resulting variation in image height is acceptable.

Should thumbnails be generated synchronously when a listing is submitted?

Usually it is safer to queue the capture separately. Browser navigation can be slow or fail, and it should not block the directory’s listing flow.

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.

Is there a standard pixel size for Indian SaaS directory thumbnails?

The cited material establishes no universal dimensions. Set the capture viewport and display ratio to match your directory’s card design.

Quick Recap

SaleBestseller No. 1
HTML and CSS: Design and Build Websites
HTML and CSS: Design and Build Websites
HTML CSS Design and Build Web Sites; Comes with secure packaging; It can be a gift option
$14.94
SaleBestseller No. 2
SaleBestseller No. 4

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.

Indian SaaSPlaywrightscreenshot APIWeb developmentwebsite thumbnails

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.