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

On Debian, install wkhtmltoimage through the wkhtmltopdf package. The package contains both command-line programs. Run:

sudo apt update
sudo apt install wkhtmltopdf
wkhtmltoimage --version

If installation succeeds, the executable should be available as /usr/bin/wkhtmltoimage on Debian Bookworm amd64. Package availability and versions depend on your Debian release, architecture, and configured repositories.

What Debian package provides wkhtmltoimage?

There is normally no separate Debian package named wkhtmltoimage. Debian ships the executable in wkhtmltopdf, whose package installs both the PDF and image renderers. Installing wkhtmltopdf is therefore the supported repository-based route when that package is available for your release.

Debian Bookworm metadata identifies version 0.12.6-2; the amd64 binary file list identifies 0.12.6-2+b1 and the path /usr/bin/wkhtmltoimage. Do not assume those exact numbers apply to another release or architecture. Debian’s tracker also records that wkhtmltopdf 0.12.6-2 was removed from testing on 2025-02-05, so “available in Bookworm” does not mean “currently available in testing.”

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
GMKtec G3S Mini PC Intel N95 Processor (Up to 3.4GHz) 8GB RAM 256GB M.2 SSD
  • 12th Intel Alder Lake N95 Processor – The GMKtec G3 S Mini PC is powered by the 12th Gen Intel N95 processor with 4 cores, 4 threads, 6MB cache and a burst frequency up to 3.4GHz. Compared with N100/N5105/N5100/N5095, the N95 delivers up to 36% overall performance improvement. Perfect for routine tasks, office work, and home entertainment, this compact mini desktop is more convenient than traditional bulky PCs.
  • 8GB RAM & 256GB SSD Storage – Pre-installed with 8GB DDR4 memory and a fast 256GB M.2 2242 SSD, the G3 S mini desktop offers quicker startup, smoother multitasking, and faster file transfers. Enjoy seamless performance whether you’re working on multiple applications, browsing, or streaming content.
  • Rich Interfaces & Connectivity – The G3 S mini computer comes equipped with USB 3.2 (up to 10Gbps), dual HDMI 2.0 (4K@60Hz), and a 3.5mm audio jack. With support for WiFi 5, Bluetooth 5.0, and Gigabit Ethernet (RJ45 1000MbE), it connects easily with monitors, projectors, printers, office equipment, and other peripherals, making it versatile for both home and business use.
  • Dual 4K Display Support – Featuring upgraded Intel UHD Graphics (up to 1000MHz), the G3 S supports 4K video playback and AV1 decoding for a smooth viewing experience. With dual HDMI outputs, you can connect two 4K@60Hz displays simultaneously, enabling efficient multitasking for work and entertainment.
  • GMKtec WARRANTY - GMKtec offers a 1-year limited GMKtec's warranty for each mini PC, starting from the date of the purchase. All defects due to design and workmanship are covered. With a professional after sales team always ready to attend to your needs, you can simply relax and enjoy your mini PC.

Before you install

  • Use a Debian account with sudo privileges, or log in as root.
  • Confirm that /etc/apt/sources.list and any files under /etc/apt/sources.list.d/ point to repositories for the release you are actually running.
  • Check your release and architecture if a package cannot be found: cat /etc/debian_version and dpkg --print-architecture.
  • Allow outbound access to your configured Debian mirror. A package installation cannot work if APT cannot refresh its index.

Install wkhtmltoimage with APT

  1. Refresh package indexes

    Run:

    sudo apt update

    Read the output. Repository signature, DNS, or HTTP errors should be fixed before proceeding; otherwise APT may be working from an incomplete or stale index.

  2. Install the package

    sudo apt install wkhtmltopdf

    APT resolves the package’s Qt and other shared-library dependencies. It may also recommend an X server. Review the proposed changes and enter Y to continue.

  3. Check that the command is callable

    wkhtmltoimage --version

    The command should print a version instead of “command not found.” The version printed is the version selected for your Debian release, not necessarily the Bookworm value above.

Verify the binary and package contents

Use these checks when you need to prove which executable is being run:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
command -v wkhtmltoimage
readlink -f "$(command -v wkhtmltoimage)"
dpkg -S "$(command -v wkhtmltoimage)"
dpkg -L wkhtmltopdf | grep '/wkhtmltoimage$'

On a Bookworm amd64 installation, the resolved path should be /usr/bin/wkhtmltoimage. The dpkg -S command should identify wkhtmltopdf as the owning package. If a different path appears first, inspect your PATH; an older manually installed copy may be shadowing the Debian binary.

Render your first image

Convert a local HTML file

Create a small test document:

cat > sample.html <<'HTML'
<!doctype html>
<html><body><h1>Debian test</h1><p>wkhtmltoimage works.</p></body></html>
HTML
wkhtmltoimage sample.html sample.png
file sample.png

The documented invocation is wkhtmltoimage [OPTIONS]... <input file> <output file>. The output extension normally selects the image format; you can also set it explicitly with a rendering option.

Render a web URL

wkhtmltoimage https://example.com example.png

For a remote page, DNS, TLS, redirects, authentication, robots policies, and the page’s JavaScript all affect the result. Test a simple public page first, then add your production URL.

Rank #2
NIMO AI NAS, Agentic Computer Mini PC and AI Server, Intel Core Ultra 5 320 (up to 4.6 GHz, beat AI 5 340) up to 132TB ZFS Hybrid Storage, for 24hr AI Agent
  • High-Performance NAS with Powerful Procesor: Intel Core 5 320 is ideal for small offices, & More. You can enjoy smooth performance and seamless collaboration, while making use of advanced features like Docker and virtual machines. It works semalessly across every device inluding Windows, macOS, Linux, iOS, Android or Google services and so on.
  • Better Way to Store Than External Drives: NAS offers centralized storage, automatic backups, remote access, and a wide range of RAID options for easy data recovery even if a drive fails. Massive Storage Capacity: Never worry about storage limits again. With up 144TB capacity, you can store 50 million 1MB photos or 98K 1.5GB movies,5 million 30MB songs! *Hard Drives not included.
  • Secure Private Cloud: Retain 100% data ownership with advanced encryption to protect your files. Flexible permission management makes it easy to protect your privacy when collaborating with others.
  • AI-Powered Photo Album: Automatically organizes your photos by recognizing faces, scenes, objects, and locations. It can also instantly remove duplicates, freeing up storage space and saving you time.
  • User-Friendly App: Simple setup and easy file-sharing on Windows, macOS, Android, iOS, web browsers, and smart TVs, giving you secure access from any device.

Specify a format and dimensions

wkhtmltoimage --format png --width 1280 https://example.com example.png
wkhtmltoimage --format jpg --quality 90 --width 1280 https://example.com example.jpg

The renderer calculates page height from the content unless you set a height. JPEG quality is relevant to JPEG output; PNG is lossless. Keep the output extension consistent with the selected format.

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.

Useful rendering options

Option names can vary with the packaged build. Run wkhtmltoimage --extended-help on the target machine for the complete list and defaults. These commonly useful options are supported by the command-line interface:

Option Purpose Example
--format Select the output image format. --format png
--width Set the viewport width in pixels. --width 1440
--height Set a fixed viewport height when the automatic content height is unsuitable. --height 900
--quality Set JPEG quality. --quality 85
--javascript-delay Wait before capture so client-side content can finish rendering. --javascript-delay 2000
--disable-javascript Turn off page JavaScript for a static capture. --disable-javascript
--no-images Skip image resources to reduce load time or output size. --no-images
--transparent Request a transparent background where the selected output format supports it. --transparent
--cookie Send a named cookie to the page. --cookie session abc123
--custom-header Add an HTTP request header. --custom-header Authorization 'Bearer TOKEN'
--quiet Suppress normal progress messages. --quiet

For dynamic sites, begin with a normal capture, then increase --javascript-delay only when the page visibly needs more time. A long fixed delay slows every request; a missing wait can produce an image before charts, fonts, or asynchronous content appears.

Display servers, Xvfb, and headless execution

Debian package metadata recommends an X server and lists xvfb as one provider for a virtual X server. The upstream project describes the tools as headless and says they do not require a display or display service. Because those descriptions differ, use the behavior of the Debian build on your machine as the deciding evidence.

If a server reports a Qt/X11 error, install the virtual display package and retry under it:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo apt install xvfb
xvfb-run -a wkhtmltoimage https://example.com example.png

If the ordinary command works without xvfb-run, there is no need to add the wrapper to every job. If it fails only in a minimal container or service account, check the exact error, environment variables, permissions, and installed libraries rather than assuming every build has the same display requirement.

Release and architecture decisions

Bookworm repository installation

For Debian Bookworm, the repository package is the clearly documented choice in the available package metadata. It integrates with APT, receives dependency handling from Debian, and places the binary in the normal system path.

Rank #3
ASUS NUC 14 Pro Mini Desktop Computer Linux, Intel Ultra 7 155H (16C/22T, Up to 4.8GHz), 64GB DDR5 RAM 2TB PCIe SSD, Mini PC with Intel Arc GPU, Type-C, WiFi 6E, Thunderbolt 4, VESA Mount for Business
  • ✅ Next-Gen AI Mini PC with Linux Mint – Open Source Meets Power: ASUS NUC 14 Pro delivers cutting-edge performance with the latest Intel Core Ultra 7 155H (16C/22T) processor and Linux Mint pre-installed for a secure, open-source environment. Ideal for developers, AI researchers, and power users, this mini desktop combines efficiency and flexibility with Intel Arc graphics for stunning visuals and AI acceleration.
  • ✅ Linux Mint for Developers, Creators & Businesses: Enjoy a lightweight, stable, and privacy-focused operating system that’s easy to use and developer-friendly. Linux Mint ensures a clutter-free experience without unnecessary bloatware, offering powerful open-source tools for programming, virtualization, and cloud-native development. This linux mint mini pc is perfect for professionals seeking freedom and security.
  • ✅ Scalable Memory & Blazing-Fast Storage: With configurations from 16GB to 64GB DDR5 RAM (expandable up to 96GB) and 512GB–2TB M.2 2280 PCIe Gen4 x4 SSD, this Linux Mint ASUS NUC handles heavy workloads effortlessly. Optional SATA HDD (sold separately) support gives you extra storage for large projects, making it ideal for coding, AI model training, and big data processing without performance bottlenecks.
  • ✅ Advanced Cooling for 24/7 Operation: ASUS NUC 14 Pro is engineered for silent and efficient cooling. The aluminum fin design, dual copper heat pipes, and optimized airflow system keep your mini PC cool during intense workloads. Perfect for running Linux-based servers, development environments, or AI inference tasks 24/7 without overheating.
  • ✅ Ultimate Connectivity & Multi-Display Support: Packed with versatile ports—USB 3.2 Gen2 x 2 Type C, USB 3.2 Gen2 Type A, HDMI 2.1, Thunderbolt 4 & 2.5G Gigabit Ethernet—this Linux Mint mini desktop supports 8K or up to four 4K HDR displays, enabling seamless multitasking. With WiFi 6E and Bluetooth 5.3, it’s ideal for developers, creative professionals, and home offices. VESA mount-ready for space-saving setups. Plus, enjoy a free $99 wireless keyboard and mouse bundle to boost your workflow.

Other Debian releases

Do not copy the Bookworm version number into Bullseye, a future stable release, or testing. First query your own repositories:

apt-cache policy wkhtmltopdf
apt-cache madison wkhtmltopdf

If no candidate is shown, verify the release codename, enabled components, architecture, and mirror health. The available evidence does not establish a particular external build for releases where the repository package is absent, so choose any replacement only after checking its provenance, dependency compatibility, and update policy.

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.

Troubleshooting

“Unable to locate package wkhtmltopdf”

APT has no indexed candidate. Run sudo apt update, inspect errors, and confirm that your sources match the running Debian release. A testing system may also be affected by the package’s recorded removal from testing.

“wkhtmltoimage: command not found” after installation

Check dpkg -L wkhtmltopdf and command -v wkhtmltoimage. If the file exists outside your PATH, invoke its absolute path or correct the account’s environment. If the package is not installed, rerun sudo apt install wkhtmltopdf.

Qt, X11, or display connection errors

Try the xvfb installation and xvfb-run -a command shown above. Also verify that the process is not being launched with a restricted temporary directory or a service account lacking required runtime permissions.

The image is blank or incomplete

Capture a simple static URL to separate renderer problems from page problems. For dynamic content, add a measured --javascript-delay; for pages that fail under JavaScript, test --disable-javascript. Check stderr for network, certificate, or resource-loading messages and confirm that the page is reachable from the Debian host itself.

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

Local files cannot load referenced assets

Use correct file paths and verify permissions for the account running the command. If the document references local CSS, fonts, or images, test each path independently and inspect the generated HTML for malformed URLs.

Rank #4
AMD Ryzen™ AI Halo - Personal AI Desktop Computer - Developer Platform - Linux OS
  • Built for Local AI Development: AMD Ryzen AI Halo is designed for local AI development and inference, featuring 128GB unified memory and support for up to 200B parameter models to build and run intensive AI workloads locally.
  • 128GB Unified Memory: Features 128GB LPDDR5x unified memory at 8000 MT/s with 256 GB/s memory bandwidth, providing a shared memory pool across the CPU, GPU, and NPU to support larger AI models.
  • AMD Ryzen AI Max+ 395 Processor: Features 16 cores, 32 threads, and Zen 5 architecture, paired with AMD Radeon 8060S integrated graphics featuring 40 RDNA 3.5 compute units and an AMD XDNA 2 NPU with up to 50 TOPS.
  • Linux AI Developer Platform: Purpose-built for Linux-based AI development with full AMD ROCm software support and preloaded tools, models, and workflows optimized for local AI development.
  • Compact, Connected Design: Includes a 2TB M.2 SSD, 10GbE LAN, Wi-Fi 7, Bluetooth 5.4, USB-C connectivity, and HDMI 2.1b.

The result has the wrong size or format

Set --width, optionally set --height, and make the output extension agree with --format. Remember that JPEG quality does not improve a PNG file.

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

Operational, security, and cost notes

  • Performance: Every invocation starts a renderer and may execute JavaScript. Reuse a queue or worker process in high-volume systems, and avoid unnecessarily large fixed delays.
  • Reliability: Pin the Debian release in deployment images, record wkhtmltoimage --version, and test representative pages after package upgrades.
  • Security: Treat remote URLs and HTML as untrusted input. JavaScript and external requests can expose network access or sensitive cookies. Run captures with a least-privilege account and avoid passing secrets on shared command lines.
  • Storage: PNG files are larger but lossless; JPEG can reduce size when photographic content and controlled quality are acceptable.
  • Cost: Debian’s package is distributed through the operating system repositories; this installation itself has no software license charge. Your hosting, bandwidth, and compute costs still apply.

Or skip the browser setup

If you only need a dependable screenshot endpoint instead of maintaining a Qt renderer, ScreenshotNeo returns a PNG, JPEG, WebP, or PDF from one GET request. It accepts cookie and consent banners like a visitor, then removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be disabled.

Only clean shots are billed. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the result with X-Page-Verdict and X-Billed headers. ScreenshotNeo also provides an MCP server with take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.

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

Use the API documentation at https://screenshotneo.com/docs/ for authentication and options. A minimal cURL request is:

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

The equivalent Python request is:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://example.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = Buffer.from(await res.arrayBuffer());
await import('node:fs/promises').then(fs => fs.writeFile('shot.webp', data));

Beyond a URL, ScreenshotNeo supports full-page captures with lazy images loaded, CSS-selector element captures, dark mode, 12 device presets or custom viewports, retina scale, PDF paper and margin controls, custom CSS and JavaScript, click-before-capture actions, selector hiding, waits for selectors, delays or network idle, ad/tracker/request/resource blocking, custom headers, cookies, user agents and Authorization, timezone and geolocation, transparent backgrounds, resizing, chosen cache TTLs, signed links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, a usage API, an OpenAPI specification, and familiar parameter names used by other screenshot APIs.

The Free plan includes 1,000 screenshots per month with no card. Paid plans start at Starter: $5 for 3,000 shots; Growth is $15 for 15,000; Pro is $39 for 60,000; Scale is $99 for 250,000; and Business is $249 for 1,000,000. Yearly billing gives two months free, and every feature is available on every plan. Create a free ScreenshotNeo account to get started.

Frequently Asked Questions

Does installing wkhtmltopdf start a background service?

No. The package provides command-line executables; you invoke wkhtmltoimage when you need a capture. It does not require a persistent web service for ordinary use.

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

Can I install only wkhtmltoimage from Debian’s repository?

The Debian package identified for this executable is wkhtmltopdf, which contains both wkhtmltopdf and wkhtmltoimage. Installing that package is the repository method described here.

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.