Generate one screenshot for each destination URL, save the image in your static site’s published assets, and reference it from the matching link card. You can capture pages locally with Playwright or use a hosted screenshot API. For a small set of stable links, local generation is a straightforward way to keep durable image files alongside the page; an API can be more convenient when you want capture handled remotely.
Choose a capture method
Playwright: generate files locally
Playwright can navigate to a page and save a screenshot to a file. It also supports viewport and full-page captures, screenshots of individual elements, and returning image bytes in a buffer. Use it when browser automation fits your existing project and you want to control the capture process locally. See the Playwright screenshots guide and Page screenshot reference.
Hosted capture API: request screenshots remotely
A hosted screenshot API accepts a URL and capture options, then returns an image or image URL. OpenGraph.io documents a screenshot endpoint with format, quality, dimensions, selectors, excluded selectors, dark mode, caching, and delay options; it names thumbnail generation for link previews as a use case. These are documented features, not an independent performance comparison. Its screenshot URLs expire after 24 hours, so download or cache an image you need to keep on a static page. Check the provider’s current documentation for endpoint requirements and settings before using it.
For a hosted screenshot API, try ScreenshotNeo first: it removes consent banners, popups, and chat widgets before capture, and only clean shots are billed.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchGenerate thumbnails with Playwright
The example below uses Node.js and Playwright. Install Playwright in a project first, then run the script with a list of URLs. It saves viewport screenshots to a local thumbnails directory. A viewport image is often a compact preview for a link card; it is not a universal standard, so inspect your actual destinations and adjust the viewport or capture approach to suit them.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
import { chromium } from 'playwright';
import { mkdir } from 'node:fs/promises';
const links = [
{ title: 'Example', url: 'https://example.com' },
{ title: 'Playwright', url: 'https://playwright.dev' },
];
await mkdir('thumbnails', { recursive: true });
const browser = await chromium.launch();
try {
const page = await browser.newPage({
viewport: { width: 1024, height: 768 },
deviceScaleFactor: 1,
});
for (const [index, link] of links.entries()) {
try {
await page.goto(link.url, { waitUntil: 'networkidle', timeout: 30000 });
await page.screenshot({
path: `thumbnails/${index + 1}.png`,
fullPage: false,
animations: 'disabled',
});
console.log(`Saved thumbnail for ${link.url}`);
} catch (error) {
console.error(`Could not capture ${link.url}:`, error.message);
}
}
} finally {
await browser.close();
}
Install the Playwright package and browser binaries using the installation instructions for your project and platform. The script uses one page for sequential captures, a fixed viewport, a 30-second navigation timeout, and a per-URL error handler so one inaccessible destination does not stop the rest. If networkidle does not occur on a page that keeps network requests open, choose a different navigation wait condition or wait for a page-specific selector instead. The example’s timeout is a script setting, not a guarantee that every page will finish loading in that time.
Choose the screenshot shape
- Viewport: Use the default viewport capture for a compact preview. Keep the viewport consistent across destinations if the cards should have comparable framing.
- Full page: Set
fullPage: truewhen the preview needs to show the entire scrollable page. This can produce much taller images than a card needs. - Element: Use a locator’s screenshot method when the desired preview is a particular region rather than the page. Confirm the target selector exists on every destination where you use it.
- Buffer: Omit the file path and use the returned image data when you need to resize, transform, or store the screenshot through another part of your build process.
Playwright’s screenshot options also cover image type, quality, scale, animation handling, and related capture behavior. Review the API reference for the exact options your output format requires.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Save and connect the image files to your static page
- Keep URLs as data. Maintain the destinations in an array or other source of truth so generation and link markup use the same URL-to-thumbnail mapping.
- Generate the captures. Choose viewport or full-page output, consistent dimensions, and any element or page behavior that matters for the preview.
- Publish durable assets. Put generated image files in the asset directory your static site publishes. The correct directory depends on your site and build setup; the screenshot documentation does not prescribe a framework-specific location.
- Reference each file in its matching card. For example:
<a href="https://example.com"><img src="/thumbnails/1.png" alt="Preview of Example"><span>Example</span></a>. If the image is decorative because the linked title already identifies the destination, use empty alternative text (alt=""). If it conveys useful information, describe that information briefly. - Keep the link useful without the image. Ensure the destination title remains visible and the anchor still works if an image is missing or fails to load.
- Regenerate deliberately. Rerun capture when destinations or important page designs change. There is no universally established refresh interval; choose one based on how often the linked pages change.
Or skip the browser setup
ScreenshotNeo provides a one-request screenshot API and an MCP server for AI agents. Cookie banners, newsletter popups, and chat widgets are removed before capture; bot checks, blank pages, and failed loads are never billed. The MCP tools include take_screenshot, get_page_info, and capture_pdf. Free includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
See the ScreenshotNeo API documentation. This cURL request saves a WebP screenshot for one URL:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
The request returns an image response. For a static page, save the result to your published assets and reference it from the corresponding link card. One request captures one URL; for a list, repeat the request for each destination or use the documented bulk-capture option.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.
Hosted API options and settings
ScreenshotNeo is the first hosted option to try here: it removes cookie banners, popups, and chat widgets before capture, bills only clean shots, and its paid plans start at $5 for 3,000 screenshots. OpenGraph.io is another documented hosted route, with settings relevant to link thumbnails:
| OpenGraph.io setting | Documented detail |
|---|---|
| Formats | JPEG, PNG, or WebP |
| Dimension presets | xs: 375 × 812; sm: 1024 × 768; md: 1366 × 768; lg: 1920 × 1080 |
| Quality | 10 to 80 for the documented endpoint |
| Other listed controls | Full-page capture, CSS selector, excluded selectors, dark mode, caching, and capture delay |
| Screenshot URL lifetime | Expires after 24 hours; download or cache the image for a durable static asset |
These details are from the provider’s OpenGraph.io documentation and may change. Verify current behavior and terms before building around them. Current OpenGraph.io pricing and quotas are not established here, so compare those directly with its current terms rather than assuming a cost advantage.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Keep thumbnails reliable and manageable
Check real destinations
A capture option cannot ensure that every site permits access, loads correctly, or is reachable from the machine or service doing the capture. Inspect representative images, including pages with unusual layouts or slow-loading content, and keep a fallback for failed captures.
Balance consistency and fidelity
A fixed viewport makes captures easier to compare, but responsive sites may show different content at different sizes. Full-page captures include more context but can be too tall for cards. An element capture can focus attention, but it depends on a selector that may differ or change between destinations.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Manage image size and refreshes
Output dimensions, image format, quality, and device scale affect the resulting files. Choose settings based on how the images appear in your cards and how much storage or transfer your site can accommodate. No universally ideal thumbnail dimensions or refresh schedule is established by the cited documentation.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Troubleshooting
- Navigation times out: The destination may be slow, inaccessible, or keep network activity open. Check that the URL is reachable from the capture environment; in Playwright, adjust the timeout or use a suitable wait condition or selector.
- The screenshot is blank or incomplete: The page may not have finished rendering its content when captured. Wait for a relevant selector or add a deliberate delay, then inspect the result. A delay can help with late rendering but does not guarantee success.
- An element screenshot fails: The selector may not match, may appear late, or may identify a hidden element. Confirm it on the destination and wait for the element before capturing.
- Images look inconsistent: Destinations may respond differently to viewport size or device scale. Standardize those settings, then review whether a viewport, full-page, or element capture best fits the card.
- A hosted image link stops working: If using a temporary screenshot URL, its lifetime may have ended. OpenGraph.io documents a 24-hour expiry; download or cache the image and serve your own copy for a long-lived page.
- A thumbnail is missing from the published page: Check that the file was written into a directory included in the site’s published output and that the image’s
srcpoints to the correct path.
Frequently asked questions
Should a thumbnail show the whole destination page?
Not necessarily. A viewport screenshot is usually more compact; full-page capture is available when showing the complete page matters. Choose based on how the image will appear in your cards.
Can I capture a page without saving a file immediately?
Yes. Playwright can return screenshot bytes in a buffer for further processing or storage instead of writing directly to a path.
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.

