Puppeteer can capture a webpage or an element as an image, but that screenshot alone does not create a WhatsApp link preview. To connect an image to a page, host it at a publicly accessible absolute URL and put that URL in the page’s og:image metadata. Then verify the page’s Open Graph tags and test the exact link in the WhatsApp client or integration where you need the preview.
How WhatsApp gets a link preview thumbnail
A link preview is driven by information available on the linked webpage, not by a screenshot sitting on your computer. Puppeteer produces an image file; your page’s HTML head must identify that image with og:image. WhatsApp’s developer guidance, as preserved by ChatArchitect’s mirror, calls for nonempty og:title, og:description, and og:url values as well as an image URL. That guidance is distinct from the general Open Graph protocol, whose four required basic properties are og:title, og:type, og:image, and og:url.
So the workflow has two separate jobs: generate or select a suitable image, then publish metadata that connects the image to the page. If your page already has an appropriate social image, you may not need Puppeteer at all; set and validate its public URL as og:image.
Capture an image with Node.js and Puppeteer
The Puppeteer Screenshots guide, labeled version 25.12.0 when consulted on October 3, 2026, documents Page.screenshot() for page capture and ElementHandle.screenshot() for a specific element. Install Puppeteer in a Node.js project if it is not already available, then save a screenshot. This example captures the page viewport after navigation; choose a readiness condition appropriate for the site rather than assuming one wait mode fits every page.
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 →#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.
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
try {
const page = await browser.newPage();
await page.setViewport({ width: 1200, height: 630 });
await page.goto('https://example.com', { waitUntil: 'networkidle2' });
await page.screenshot({ path: 'whatsapp-preview.png', type: 'png' });
} finally {
await browser.close();
}
})();
Replace https://example.com with the page you intend to share. Puppeteer’s documented example uses page.goto(), waitUntil: 'networkidle2', a screenshot path, and browser cleanup; network-idle timing is not a guarantee that every site’s final content or lazy-loaded images are ready.
Capture the full page or a specific element
- Viewport screenshot:
page.screenshot()above captures the visible viewport. Set a deliberate viewport so the composition is predictable. - Full-page screenshot: use
await page.screenshot({ path: 'whatsapp-preview.png', fullPage: true });when the entire page matters. A tall page may produce an unsuitable link-card image, so check the final dimensions and composition. - Element screenshot: select a stable element after it has rendered and call
element.screenshot(). For example:const card = await page.$('.hero'); if (!card) throw new Error('Preview element not found'); await card.screenshot({ path: 'whatsapp-preview.png' });. The selector must match an element present on the page; wait for it when rendering is asynchronous.
Use a full-page capture when important content is distributed down the page, an element capture when a hero or card already expresses the page clearly, and a viewport capture when you can control the page layout at a known size. A designed social image is often simpler to maintain than a screenshot if the page changes frequently.
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.
Publish Open Graph metadata for the image
Upload the generated image to a location the preview fetcher can reach without a login, and use its complete HTTPS URL. Add metadata in the page’s <head>; for example:
<head>
<title>Product guide</title>
<meta property="og:title" content="Product guide">
<meta property="og:description" content="A concise description of the page.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/product-guide">
<meta property="og:image" content="https://cdn.example.com/images/product-guide.png">
</head>
Use the canonical page URL in og:url, rather than a tracking-decorated share URL. WhatsApp’s developer guidance says the title should represent the content without branding; it says 80 characters will suffice for the displayed description. That guidance also says the metadata head should appear within the first 300 KB of the HTML response. This is a position threshold, not a maximum total page size.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteRank #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.
Image checks from WhatsApp’s developer guidance
The WhatsApp-specific limits below are attributed to its developer documentation as preserved in the linked ChatArchitect mirror, which shows a 2025 update. The upstream update date is not independently confirmed here.
| Check | Guidance |
|---|---|
| File size | Less than 600 KB |
| Width | At least 300 pixels |
| Width-to-height ratio | No greater than 4:1 |
| Image address | Absolute URL to a publicly fetchable image |
The Open Graph protocol additionally defines image structured properties including width, height, type, secure URL, and alt description. Include those where useful, but do not confuse optional structured properties with the WhatsApp-specific constraints above.
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
Validate the page and test the actual preview
- Open the exact share URL and follow redirects to the final page. Make sure the page is the one whose metadata you edited.
- Inspect the returned HTML, not only the browser’s rendered view. Confirm the relevant tags are in the head early in the response and that the content values are nonempty.
- Request the exact
og:imageURL without being logged in. Confirm it returns the intended image and that its file size, width, and aspect ratio meet the stated guidance. - Send the link using the WhatsApp client or business integration and message type that matters. Inspect the received card; a successful manual paste in a personal chat does not prove that a separate integration supports the same preview behavior.
Keep the client, sending tool or integration, timestamp, exact URL, and a screenshot of the received result if you need to report an integration-specific failure. Correct metadata does not guarantee that every message or client will display a preview.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Why the WhatsApp preview may be missing its image
- The image appears in a browser but not in the card: check that the page’s actual HTML contains the intended
og:imageand that it is an absolute, publicly retrievable URL. - The wrong page metadata is returned: inspect the final URL after redirects and verify that the metadata is attached to that canonical page, not a different route or a browser-only state.
- The tags are absent from the response: add them to the server-delivered page head and ensure the head occurs within the first 300 KB of HTML, according to the WhatsApp guidance cited above.
- The thumbnail is rejected or unsuitable: check the file’s size, minimum width, and width-to-height ratio against the guidance table; make sure the image shows the intended content.
- A manual test works but an integration does not: test with the exact integration and message type. Preview support may differ; personal-chat behavior is not proof of integration support.
- The destination opens but no card is shown: treat destination availability and preview rendering as separate issues. Preserve the exact link and test context, then check the receiving client or integration’s actual result.
The consulted guidance does not establish a current WhatsApp crawler user agent, cache lifetime, or cache-invalidation procedure, so do not rely on guessed crawler rules or a specific refresh trick.
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.
Or skip the browser setup
If you need a screenshot URL without managing Puppeteer, ScreenshotNeo is a website screenshot API and MCP server. A screenshot still needs to be hosted and referenced by your page’s og:image tag to become a link preview.
One GET request returns an image or PDF; this example saves a WebP response. See the ScreenshotNeo API documentation for request options.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
- Cookie and consent banners, newsletter popups, and chat widgets are removed before capture; each step can be turned off.
- Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; responses indicate the page verdict and billing status.
- An MCP server lets AI agents, including Claude and Cursor, take screenshots.
- The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots.
Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.
Frequently Asked Questions
Can Puppeteer generate an Open Graph image?
Yes. Puppeteer can save a webpage or element as an image; the page must then expose the public image URL in its og:image metadata for it to be associated with a link preview.
Free tools Windows power users keep installed
One-click scans. No signup required.
Does a correct og:image guarantee a WhatsApp preview?
No. Preview display can depend on the exact client, message type, and sending integration; test the actual route you use.
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.

