“No wkhtmltoimage executable found” means IMGKit is installed, but the separate wkhtmltoimage program is either missing or invisible on the PATH used by your running process. Install a wkhtmltopdf distribution that includes the image tool, verify the executable from the same environment as your application, and pass its absolute path to IMGKit when automatic discovery cannot find it.
The reliable sequence is: check which wkhtmltoimage (Linux/macOS) or where wkhtmltoimage (Windows), install a platform-matched package if no path is returned, then configure IMGKit with the real path and test the binary directly.
What the error actually means
IMGKit is a Python wrapper; it does not contain the renderer. wkhtmltoimage is a command-line executable distributed with wkhtmltopdf packages. IMGKit searches for that executable on PATH (using which on Unix-like systems and where on Windows), or you can provide a custom path in its configuration. Installing imgkit alone therefore cannot fix a missing-binary error.
There are two separate questions:
- Discovery: can the current process locate an executable named
wkhtmltoimage? - Execution: once found, can that binary start and render pages with its libraries, fonts and configuration?
The error in this article is a discovery failure. Continue with the execution and dependency checks if the message changes after the binary is found.
#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.
Fastest fix: check, install, configure, test
1. Check the path in the same environment
Run the command from the shell, virtual environment, container or deployment instance that runs your application:
# Linux or macOS
which wkhtmltoimage
# Windows Command Prompt
where wkhtmltoimage
A successful result is a full path such as /usr/local/bin/wkhtmltoimage or C:Program Fileswkhtmltopdfbinwkhtmltoimage.exe. If the command prints nothing, the executable is not installed in that environment or its directory is not on PATH.
You can perform the same check in Python, which avoids testing a different shell from the one your service uses:
import shutil
path = shutil.which('wkhtmltoimage')
if not path:
raise RuntimeError('wkhtmltoimage is not visible on PATH')
print(path)
2. Install a package for your operating system and architecture
The IMGKit README separates wrapper installation from renderer installation. Use a package that matches the deployed distribution and CPU architecture.
| Platform | Typical installation route | Important qualification |
|---|---|---|
| Debian or Ubuntu | sudo apt-get update && sudo apt-get install wkhtmltopdf |
Repository builds may have reduced functionality because they can be compiled without wkhtmltopdf’s patched Qt. |
| macOS | brew install --cask wkhtmltopdf |
Confirm the Homebrew prefix and test the resulting executable from the account that runs the app. |
| Windows | Install the project’s Windows binary package, then use where wkhtmltoimage. |
Point IMGKit at the actual wkhtmltoimage.exe, not merely the installer directory. |
| Other Linux distributions | Choose the matching package from the official downloads page. | Do not assume a package built for another distribution, libc or architecture will run. |
The downloads page identifies the 0.12.6 stable series, released June 11, 2020. Treat that listing as time-sensitive and verify the platform-specific download before deployment. Static packages still depend on system components such as font configuration and FreeType-related libraries; Alpine’s musl environment has compatibility limitations.
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.
3. Give IMGKit the absolute path when PATH is unreliable
After locating the binary, configure IMGKit explicitly. This is often the cleanest solution for services, virtual environments, containers and Windows installations:
import imgkit
config = imgkit.config(
wkhtmltoimage='/opt/bin/wkhtmltoimage'
)
imgkit.from_url('https://example.com', 'example.png', config=config)
Replace /opt/bin/wkhtmltoimage with the path returned by your diagnostic command. On Windows, use the complete executable path, for example:
config = imgkit.config(
wkhtmltoimage=r'C:Program Fileswkhtmltopdfbinwkhtmltoimage.exe'
)
Do not hard-code a path copied from a developer laptop unless the deployed image uses the same layout. A configuration value or environment variable is safer:
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →import os
import imgkit
binary = os.environ.get('WKHTMLTOIMAGE_BIN')
if not binary:
raise RuntimeError('Set WKHTMLTOIMAGE_BIN to the deployed wkhtmltoimage path')
config = imgkit.config(wkhtmltoimage=binary)
imgkit.from_url('https://example.com', 'example.png', config=config)
4. Test the executable outside IMGKit
Run the reported path directly. This separates a missing executable from a renderer or library problem:
/opt/bin/wkhtmltoimage https://example.com /tmp/example.png
On Windows, quote a path containing spaces:
"C:Program Fileswkhtmltopdfbinwkhtmltoimage.exe" https://example.com example.png
If the command creates an image, IMGKit should be able to invoke it with the same path. If it fails after starting, capture the complete stderr output and investigate dependencies, fonts, permissions or page-loading behavior rather than changing PATH.
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.
Or skip the browser setup
If your goal is a dependable website screenshot rather than maintaining a local wkhtmltoimage installation, ScreenshotNeo provides a hosted API and an MCP server. One request returns PNG, JPEG, WebP or PDF output, so there is no browser binary to package.
See the ScreenshotNeo API documentation for all options. A minimal call is:
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemscurl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.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://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const fs = await import('node:fs/promises');
await fs.writeFile('shot.webp', Buffer.from(await res.arrayBuffer()));
ScreenshotNeo accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups and chat widgets; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and response headers identify the page verdict and billing result. Its MCP server exposes take_screenshot, get_page_info and capture_pdf for Claude, Cursor and other MCP clients. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Create a free ScreenshotNeo account.
Why it works locally but fails on a server
PATH differs between your shell and the service
Web servers, workers and system services often start with a smaller PATH than your interactive terminal. A shell may find /usr/local/bin/wkhtmltoimage while a process launched by systemd, Supervisor, cron or a container cannot. Log shutil.which('wkhtmltoimage') at application startup, or configure the absolute path explicitly.
The binary was installed in another container stage
In a multi-stage image, installing wkhtmltopdf in the build stage does not place it in the final runtime stage. Copy the executable and every required shared library, font and fontconfig file, or install the distribution package again in the final stage. Confirm availability by running which inside the running container, not on the host.
Serverless and FaaS packaging
The wkhtmltopdf project’s FaaS guidance calls for extracting a distribution-specific package and bundling its libraries, configuration and fonts. Its Lambda example uses an Amazon Linux 2 package and sets FONTCONFIG_PATH=/opt/fonts. That is an example for the described package, not a universal recipe for every provider or runtime. Match the provider’s operating system, architecture and libc, and verify the binary during deployment.
Free tools Windows power users keep installed
One-click scans. No signup required.
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
Platform and package details that affect rendering
Linux packages and patched Qt
Debian or Ubuntu repository packages can omit the project’s patched Qt features. If your application depends on options provided by the official builds, compare the package behavior with the required options and use the matching release from the downloads page. Finding the executable proves only that discovery works; it does not prove that every rendering feature is available.
Fonts and system libraries
A binary can be present but fail with shared-library errors, missing glyphs or blank text when runtime libraries and fonts are absent. Install the font packages required by your documents, ensure fontconfig can read its configuration, and test with the same user that runs the service. The official project notes that even static builds rely on system packages, including font configuration and FreeType-related components.
Permissions and temporary directories
The service account must execute the file and write the destination and temporary directories. Check permissions with ls -l (Unix) or the file’s Security properties (Windows). A read-only filesystem, an unwritable temporary directory or a security policy can produce a failure after discovery.
Identify the error before changing configuration
| Symptom | Meaning | Next action |
|---|---|---|
No wkhtmltoimage executable found |
IMGKit cannot locate the renderer. | Check installation and PATH, then set the full binary path. |
No xvfb executable found |
A separate Xvfb executable setting is missing. | Install or configure Xvfb only if your deployment requires it; do not treat it as the wkhtmltoimage binary. |
| The command starts, then exits non-zero | Discovery succeeded; rendering, arguments, libraries or permissions failed. | Run the exact command directly and inspect stderr. |
| Segmentation fault | A renderer/package compatibility problem, not a PATH problem. | Check package version, patched-Qt requirements, architecture and system libraries. |
| Works on a laptop but not in hosted deployment | The deployed runtime lacks the binary, PATH entry, libraries or fonts. | Inspect the final image or function bundle from inside the running environment. |
IMGKit’s README recommends running the reported command directly when command execution fails. Preserve the complete command and stderr in deployment logs, but remove secrets such as cookies, Authorization headers and private URLs.
Recommended Free Tools
Security considerations
The official 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, JavaScript, URLs and local-file access as untrusted input. Sanitize content, restrict network access where possible, run the renderer with least privilege and isolate it from sensitive credentials.
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.
Operational checklist
- Run
which wkhtmltoimage,where wkhtmltoimageorshutil.whichin the actual runtime. - Install a package matching the operating system, architecture and libc.
- Confirm the final deployment contains the executable, shared libraries, font configuration and required fonts.
- Configure IMGKit with an absolute path when PATH can vary.
- Run the binary directly against a small test page and capture stderr.
- Only after discovery works, investigate Xvfb, patched-Qt options, page JavaScript, permissions or segmentation faults.
FAQ
Does the executable name have to be exactly wkhtmltoimage?
IMGKit’s automatic lookup expects that command name. If a vendor package stores it elsewhere or uses a different layout, supply the actual executable path through imgkit.config(wkhtmltoimage=...).
Should I choose an Alpine package because my application uses Alpine?
Not automatically. The project documents compatibility limitations in Alpine’s musl environment. Choose a build intended for the runtime distribution, or use a compatible base image and verify it in the deployed environment.
What should a deployment health check record?
Record the resolved executable path, the renderer’s version output, the current user, architecture and a small test-render result. These details distinguish a missing binary from a library, font or permission regression without exposing page credentials.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Frequently Asked Questions
Does the executable name have to be exactly wkhtmltoimage?
IMGKit’s automatic lookup expects that command name. If the package uses another location, configure the actual executable path explicitly.
Should I use an Alpine package because my application runs on Alpine?
Not automatically. The wkhtmltopdf project documents compatibility limitations in Alpine’s musl environment; verify a build intended for your exact runtime.
What should a deployment health check record?
Log the resolved path, renderer version, runtime user, architecture and a small test-render result so discovery failures can be separated from library or font regressions.
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.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →

