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 desk3 min

How to Install wkhtmltoimage on Ubuntu 24.04

Ubuntu 24.04 provides wkhtmltoimage through the wkhtmltopdf package. Install it with APT, verify the executable, and understand package and upstream-build differences.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On Ubuntu 24.04 (Noble), install the wkhtmltopdf package; it also provides the wkhtmltoimage command. Run sudo apt update, then sudo apt install wkhtmltopdf. Confirm it is available with command -v wkhtmltoimage and check its version with wkhtmltoimage --version.

Install the Ubuntu 24.04 package

  1. Refresh APT’s package metadata:
    sudo apt update
  2. Install the package that contains the image utility:
    sudo apt install wkhtmltopdf
  3. Check that the executable is on your PATH and print its version:
    command -v wkhtmltoimage
    wkhtmltoimage --version

The package name and command name differ: Ubuntu’s Noble wkhtmltopdf package provides wkhtmltoimage. Ubuntu lists version 0.12.6-2build2 for amd64 in its Noble package listing, and the Noble manpage identifies the utility as supplied by that package. The package is in Ubuntu’s Universe repository. These commands follow the package information; they have not been independently run here.

As an Amazon Associate I earn from qualifying purchases.

Capture a webpage to an image

The documented command form is wkhtmltoimage [OPTIONS]... <input file> <output file>. To render a URL to a PNG, for example:

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

wkhtmltoimage https://example.com page.png

This is an illustrative invocation, not a reported test result. Consult wkhtmltoimage --help or the Noble manpage for available command-line options.

Ubuntu’s package or an upstream build?

For Ubuntu 24.04, the Ubuntu repository package is the direct Noble package. The upstream download page lists stable series 0.12.6, released June 11, 2020, and lists Ubuntu 22.04 (Jammy) among its Ubuntu download targets—not Ubuntu 24.04 (Noble). A Jammy download is therefore a separate compatibility choice, not an upstream build listed for Noble.

Build variants can matter: the project explains that some features require its patched Qt, and distribution packages built without those patches may behave differently. If your application depends on one of those features, verify that the package variant you choose supports the specific behavior you need rather than assuming the Ubuntu package matches an upstream example. See the upstream downloads page and its project status and patched-Qt notes.

Troubleshoot installation and rendering

  • APT cannot find the package: Run sudo apt update and confirm that the Universe repository is enabled. Ubuntu places the Noble package there.
  • wkhtmltoimage is not found: Check the result of command -v wkhtmltoimage and review whether apt install completed successfully. The Noble manpage documents the executable’s package relationship.
  • The rendered result differs from an upstream example: Check whether the expected behavior relies on patched Qt. Upstream warns that distribution builds and its patched build can behave differently.
  • You are considering an upstream Ubuntu binary: The upstream download list names Jammy, not Noble, as an Ubuntu target. Do not treat a Jammy package as the officially listed Noble build; check compatibility and required rendering behavior before choosing it.

Handle untrusted HTML safely

The wkhtmltopdf project warns: “Do not use wkhtmltopdf with any untrusted HTML – be sure to sanitize any user-supplied HTML/JS, otherwise it can lead to complete takeover of the server it is running on!” Treat HTML and JavaScript from users as untrusted input and sanitize it before rendering. Read the project’s security and status notes before exposing a renderer to user-supplied content.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your goal is to capture a website screenshot through an API rather than install a local renderer, ScreenshotNeo accepts a URL in one GET request and returns an image or PDF. For example, using cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

See the ScreenshotNeo API documentation for setup and options. It can accept cookie and consent banners and remove known consent platforms, newsletter popups, and chat widgets before capture; bot checks, blank pages, timeouts, failed loads, and cache hits are not billed. Its MCP server offers screenshot tools for AI agents, and the Free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots. Sign up free for 1,000 screenshots a month, with no card required.

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.

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 *

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

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.