October DealsAmazon USOctober deal check: compare before you payAmazon 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 NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Save Website Thumbnails as WebP for a Link Directory

Capture the page or element your directory card should show, make a card-sized derivative, then encode it as WebP. Learn the cwebp workflow, browser CORS limits, and automation options.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To save a website thumbnail as WebP, first capture the page or page region your directory card should show, resize and crop a copy to fit that card, then encode it as WebP. For a repeatable local workflow, use cwebp: cwebp -q 80 preview.png -o preview.webp. A website screenshot, a screenshot of one page element, and a small image already displayed on the page are different starting points, but each can end as a WebP thumbnail.

Choose what the thumbnail represents

Decide what a reader should see in the directory card before capturing anything. The right scope depends on the design; there is no universal thumbnail size or capture choice.

As an Amazon Associate I earn from qualifying purchases.

  • Visible viewport: captures the currently visible browser area. It is quick and useful when the top of a site is enough to identify it.
  • Full page: captures the page from top to bottom. This can show more context, but it may make text too small when reduced to a card.
  • One element: captures a specific region, such as a hero image or product panel, when that is the intended preview.
  • Existing page image: if the directory should show an image already on the site, you may not need a page screenshot; obtain the image through an authorized workflow, then resize and encode it.

Firefox’s screenshot tools document full-page and element captures, and Firefox Support describes full-page and visible-area screenshots. See Firefox Developer Tools: Taking screenshots and Firefox Support: Take screenshots in Firefox.

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

Capture, resize, and encode a thumbnail

  1. Capture the chosen scope. Use your browser’s screenshot feature or another authorized capture workflow. Save a full-resolution original if you may want to make differently sized cards later.
  2. Make a separate card-sized copy. Crop and resize the screenshot to the dimensions your directory layout requires. Keep the aspect ratio appropriate to the card; avoid shrinking the only copy of the original.
  3. Encode the derivative as WebP. With Google’s cwebp tool installed, run:
    cwebp -q 80 preview.png -o preview.webp
    This uses quality 80 as a starting point, not a universal optimum. Inspect small text, edges, and gradients at the actual display size and adjust quality if needed. The cwebp documentation describes the encoder; Google’s Getting Started with WebP covers use of WebP.
  4. Check the file in the directory. Verify the dimensions, crop, appearance, file format, and that the directory actually serves the WebP file. A filename ending in .webp alone does not prove that the file was encoded as WebP.

For exact pixel preservation, cwebp also supports lossless encoding. Choose it when preserving detail matters more than minimizing file size, then check the resulting file in your directory.

Use ImageMagick as an alternative converter

ImageMagick can read and write WebP when the installed build has the WebP delegate library available. Support depends on that build, so a command that works on one installation may not work on another. Check the ImageMagick format reference and its WebP encoding options for supported settings. If WebP is unavailable in your installation, use a build with the needed support or use cwebp.

Automate capture and WebP conversion

For a directory that creates thumbnails from URLs automatically, separate the work into two steps: capture a rendered page to an image, then resize and encode that image as WebP. A browser screenshot tool or screenshot API handles page rendering; an image converter such as cwebp handles the WebP output. Keep the original capture if you need to regenerate card sizes or quality settings without recapturing.

Rank #2
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

If your directory instead fetches an image from another website and uses browser JavaScript to draw it on a canvas, the source server must permit the relevant cross-origin access. Without appropriate CORS permission, the canvas is tainted and exports such as toBlob() or toDataURL() may fail. MDN explains this in Use cross-origin images in a canvas. When the source does not allow browser access, use an authorized server-side fetch or download/capture workflow, then convert the local file.

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

Or skip the browser setup

ScreenshotNeo can capture the rendered page as an image; resize and convert the returned image to your directory’s card dimensions and WebP format. Its API supports PNG, JPEG, or WebP output, plus full-page and element capture options. For a direct capture, request WebP and adapt the target URL:

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 and consent banners are accepted like a visitor and more than 60 known consent platforms, newsletter popups, and chat widgets are removed before capture; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report 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 a month with no card; paid plans start at $5 for 3,000.

Sign up for 1,000 free screenshots a month with no card.

Troubleshoot common problems

  • The file will not open or is not actually WebP: confirm the converter completed successfully and inspect the file format rather than relying on the extension. Re-encode the source image if needed.
  • Text looks soft or edges look damaged: inspect at the actual card size and raise the lossy quality setting, or try lossless encoding if preserving exact detail is more important than file size.
  • The page image is incomplete: check whether you captured the viewport rather than the full page, or selected the wrong element. Recapture using the scope the card needs.
  • Browser canvas export fails: the remote image may not permit cross-origin canvas use. Use an authorized server-side fetch or another permitted capture workflow instead of trying to bypass the site’s access rules.
  • ImageMagick cannot write WebP: the installed build may lack the WebP delegate library. Use a build with WebP support or convert with cwebp.
  • The thumbnail is cropped awkwardly or too small: revisit the card’s intended aspect ratio and dimensions, then create a fresh derivative from the original capture.

Check file size and display behavior

WebP does not guarantee a particular reduction in file size. Results vary with the source image and encoding choices, so compare representative screenshots at the dimensions and quality your directory will actually serve. Confirm that the displayed card uses the intended file and that its crop remains readable on the directory’s layout.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Web Design with HTML, CSS, JavaScript and jQuery Set
  • Brand: Wiley
  • Set of 2 Volumes
  • A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

What quality should I use with cwebp for a website thumbnail?

Start by testing -q 80, then inspect the thumbnail at its actual display size and adjust for text and edge detail.

Does changing a screenshot’s extension to .webp convert it?

No. The image must be encoded as WebP with a converter such as cwebp or a WebP-capable ImageMagick build.

Can I make a WebP thumbnail directly from a remote image in browser JavaScript?

Only if the image’s origin permits the relevant cross-origin canvas access; otherwise use an authorized server-side fetch or capture workflow.

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.

Leave a Reply

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

Free tools Windows power users keep installed

One-click scans. No signup required.

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

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
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.