What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Use --cookie for individual cookies, --cookie-jar for a file-backed cookie store, and repeatable --custom-header options for request headers. Add --custom-header-propagation when those headers must accompany images, stylesheets, scripts, or other resource requests. Cookie values should be URL encoded, and the exact flags available depend on the wkhtmltoimage build installed on your system.
The flags you need
wkhtmltoimage accepts cookies and headers as command-line options placed before the source URL and output filename. A minimal authenticated capture looks like this:
As an Amazon Associate I earn from qualifying purchases.
wkhtmltoimage
--cookie 'session_id' 'URL_ENCODED_COOKIE_VALUE'
--custom-header 'Authorization' 'Bearer TOKEN'
--custom-header-propagation
--javascript-delay 1000
'https://example.test/private-page' output.png
This is a syntax pattern, not a guarantee that the target application will accept the supplied credentials or that a one-second delay is sufficient. Replace the placeholders, choose the output format supported by your build, and validate the resulting image.
--cookie <name> <value>adds one cookie. You can repeat it for multiple cookies, and the documented guidance says the value should be URL encoded.--cookie-jar <path>reads and writes cookies through the specified jar file.--custom-header <name> <value>adds one HTTP header. Repeat it for separate headers.--custom-header-propagationsends configured custom headers with each resource request.--no-custom-header-propagationexplicitly disables that propagation behavior.--javascript-delay <milliseconds>waits after the page finishes loading before the image is rendered.
Check the binary before building a command
Option names are documented by the wkhtmltoimage project and by the Debian man page, but those references do not prove that every packaged binary, wrapper, or language binding behaves identically. Start with the executable that will run in production:
#1 Best Overall
- [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
- [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
- [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
- [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
- [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
wkhtmltoimage --version
wkhtmltoimage --extended-help
--version identifies the installed build. --extended-help displays the options compiled into that binary. If an option is reported as unknown, compare this output with the command you copied and adjust the command to the installed build rather than assuming all distributions ship the same feature set.
Also verify that the executable can write to the destination directory and that the target URL is reachable from the machine running the command. Authentication supplied on your laptop does not automatically exist in a container, CI runner, or server.
Supply cookies with --cookie
One cookie
Use the cookie name and value as two separate arguments:
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorswkhtmltoimage
--cookie 'session_id' 'URL_ENCODED_COOKIE_VALUE'
'https://example.test/account' account.png
The option is repeatable. If a page requires several cookies, add one pair for each:
wkhtmltoimage
--cookie 'session_id' 'URL_ENCODED_SESSION'
--cookie 'locale' 'en-US'
--cookie 'feature_flag' 'new-dashboard'
'https://example.test/account' account.png
Cookie values should be URL encoded as instructed by the project usage documentation. Encoding matters when a value contains spaces, punctuation, or characters with special meaning to a shell or URL. Keep the cookie value in quotes so the shell does not split it or expand punctuation. The examples use placeholders deliberately; do not paste a live session token into documentation, source control, or a shared command transcript.
When to use a cookie jar
For a reusable or stateful cookie set, point wkhtmltoimage at a jar file:
Rank #2
- 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
- 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
- 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
- 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
- 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
wkhtmltoimage --cookie-jar '/path/to/cookies.txt'
'https://example.test/account' account.png
The documented behavior is read-and-write: the command reads cookies from the supplied path and writes cookies back to it. That makes a jar useful when several captures share a session or when the first navigation changes the cookie state for a later capture.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →The cited option description does not define a portable cookie-file format. Do not assume that a browser-exported file will work unchanged; test the file with the specific wkhtmltoimage build and inspect the resulting capture. Treat the jar as sensitive because it can contain reusable authentication state, and restrict its filesystem permissions in the environment where the command runs.
| Method | Best fit | Operational detail |
|---|---|---|
--cookie name value |
A small, explicit set of values for one invocation | Repeat the option for every cookie; URL encode values |
--cookie-jar path |
Shared or persistent session state | Reads and writes the supplied file; format interoperability is not specified by the cited documentation |
Send custom headers
Add each header with a separate, repeatable option:
wkhtmltoimage
--custom-header 'Authorization' 'Bearer TOKEN'
--custom-header 'X-Client-Context' 'preview'
'https://example.test/private-page' output.png
The name and value are separate arguments. Quote both when they contain spaces or shell-significant characters. Use this mechanism for headers such as an authorization token or client context. Cookies and custom headers are separate controls: a cookie option supplies cookie state, while a custom-header option supplies an HTTP header. The documented options do not establish that manually constructing a Cookie: header is equivalent to using --cookie, so use the dedicated cookie option for cookies.
Decide whether headers should reach page resources
By default, think of a custom header as belonging to the initial page request. If the page’s images, stylesheets, scripts, or other assets also require that header, add:
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11--custom-header-propagation
The option description says propagation applies to each resource request. This is the important distinction for protected dashboards: the HTML may load successfully while authenticated assets fail, leaving a blank chart or broken layout. A complete example is:
Rank #3
- [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
- [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
- [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
- [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
- [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
wkhtmltoimage
--custom-header 'Authorization' 'Bearer TOKEN'
--custom-header-propagation
'https://example.test/dashboard' dashboard.png
To turn propagation off explicitly, use:
--no-custom-header-propagation
Enable propagation only when the same header is intended for those resource requests. The cited documentation does not specify domain scoping, redirect handling, or special security filtering, so do not infer that behavior for a particular build. If a token must not leave the target origin, test redirects and third-party assets with a non-production credential and review the page’s network behavior.
Combine cookies, headers, and JavaScript timing
Many authenticated pages need both a session cookie and a bearer token, followed by JavaScript rendering:
wkhtmltoimage
--cookie 'session_id' 'URL_ENCODED_COOKIE_VALUE'
--custom-header 'Authorization' 'Bearer TOKEN'
--custom-header-propagation
--javascript-delay 1000
'https://example.test/private-page' output.png
Use a cookie flag for cookie state and a custom-header flag for the authorization header. Do not collapse the two into a single improvised header. Keep credentials out of shell history and CI logs where practical by using the secret-management facilities of your execution environment; the command-line syntax itself does not provide secret storage.
Recommended Free Tools
Handle JavaScript-rendered content
wkhtmltoimage can run JavaScript, but a successful page load does not mean that a single-page application has finished drawing. --javascript-delay <msec> waits after loading before capture:
wkhtmltoimage
--enable-javascript
--javascript-delay 1500
'https://example.test/app' app.png
The project usage text lists a 200 ms default in the shared page options. That value is not a universal rendering guarantee; the appropriate delay depends on the target page, network latency, API calls, and client-side rendering work. Increase it only after checking the output, because a longer delay also increases capture time. Neither the project usage text nor the cited man page supplies a delay that is reliable for every application.
If the page still appears incomplete, first confirm that the request was authenticated, then inspect whether the application waits for an API response or a user action that wkhtmltoimage cannot reproduce. A delay cannot fix a rejected request or an interaction that never occurs.
Rank #4
- Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
- Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
- All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
- Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
- Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
Use a repeatable command safely
- Run
wkhtmltoimage --versionand--extended-helpon the same machine or container that will perform the capture. - Start with the destination URL and output file only. Confirm that a public or unauthenticated page renders.
- Add one
--cookiepair, using a URL-encoded value, and verify that the page changes as expected. - Add each required
--custom-headerseparately. Keep header names and values quoted. - Add
--custom-header-propagationif protected resources need the same header. - Enable JavaScript and set a page-appropriate delay only when the page requires client-side rendering.
- Move repeated session state to
--cookie-jarafter the one-off command works, then secure and test the jar file. - Compare the output image with a known-good browser view and retain the exact command, binary version, and target environment for troubleshooting.
Language bindings and library settings
The command-line flags are the clearest documented interface, but bindings do not necessarily expose an identical API. The official library settings reference lists a cookie-jar setting as load.cookieJar. It lists the propagation setting as load.repertCustomHeaders (that spelling appears on the reference page), while load.customHeaders and load.cookies are marked incomplete there.
Consequently, do not translate the CLI options into a presumed library property name. Check the documentation for the binding you are using and confirm the generated command or request. If a binding lacks cookie or custom-header support, invoke the verified CLI from a controlled process or use the binding’s documented extension mechanism rather than guessing property names.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
Unknown long argument |
The installed package does not include the flag, or the option name differs | Run --version and --extended-help on that binary; use only the options it advertises. |
| The page is public instead of signed in | The cookie name/value is wrong, not URL encoded, expired, or not being read from the expected jar | Test one explicit --cookie pair first, verify the exact name and value, then test the jar with the same build. |
| HTML appears but images or scripts are missing | Protected resources did not receive the authorization header | Add --custom-header-propagation and recapture. If the header should apply only to the initial request, leave propagation disabled and investigate the resource requirements instead. |
| Authorization header works for the page but not assets | Propagation was omitted | Use a repeatable --custom-header for the header and add the propagation flag when resource requests need it. |
| Cookie option is ignored | Arguments were split by the shell, the value was not encoded, or the cookie belongs to a different host/path context | Quote both arguments, URL encode the value, confirm the target URL, and test with a minimal page and a fresh session. |
| Single-page app is captured before content appears | JavaScript has not finished rendering | Use --enable-javascript and increase --javascript-delay incrementally. A delay cannot repair failed API authentication or missing user interaction. |
| A saved jar works on one machine but not another | The file format or build behavior is not portable | Because the cited documentation does not define a portable format, recreate or validate the jar with the destination build instead of assuming browser-export compatibility. |
| Redirected requests behave unexpectedly | The cited option descriptions do not define redirect or domain-scoping behavior | Test the redirect chain with a safe credential, inspect the final capture, and consult the installed build’s documentation before relying on propagation across redirects. |
Performance, reliability, and credential hygiene
- Every additional resource request and JavaScript delay can lengthen a capture. Use the smallest delay that consistently produces the required output.
- Propagation may attach a sensitive header to many resource requests. Enable it only when those requests are intended to receive the header, and test with a limited-scope credential.
- A cookie jar makes repeated captures easier but creates a persistent authentication artifact. Store it with restricted permissions and remove it when the session is no longer needed.
- Record the executable version, command-line options, URL, and output format for reproducibility. A wrapper or distribution update can change which flags are available.
- Validate the image itself. A zero exit status or a generated file does not prove that authenticated data, lazy assets, or client-rendered content appeared in the image.
Or skip the browser setup
If you do not want to maintain a wkhtmltoimage binary, cookie jar, header propagation rules, and JavaScript timing, ScreenshotNeo provides a website screenshot API and MCP server. One request returns a PNG, JPEG, WebP, or PDF. Its capture flow accepts cookie and consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before the shot; each cleanup step can be turned off.
Only clean shots are billed. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and each response reports the result through X-Page-Verdict and X-Billed headers. An MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.
See the ScreenshotNeo API documentation for request options. A one-call example is:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.test/private-page -o shot.webp
You can use the same endpoint from Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://example.test/private-page"}, timeout=90)
open("shot.webp", "wb").write(r.content)
Or Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.test/private-page' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
The free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 shots, and every feature is included on every plan. Create a free ScreenshotNeo account to try the API.
FAQ
Can I pass a browser-exported cookie file directly?
Not reliably based on the cited option descriptions. They document that wkhtmltoimage reads and writes the supplied jar, but do not define a portable file format. Validate the file with the exact build you will run.
Best Value
Does --custom-header-propagation guarantee the header is sent to every domain?
No such domain or redirect guarantee is stated in the reviewed documentation. The option is described as applying to each resource request; test the redirect and resource behavior of your installed build before relying on it across origins.
What should I do if my language wrapper has no cookie option?
Check that wrapper’s own API reference. The official library settings page marks cookie settings as incomplete, so invoking a verified wkhtmltoimage CLI may be more predictable than guessing an unimplemented property.
Is a longer JavaScript delay always safer?
No. It can increase runtime without fixing rejected API calls, missing credentials, or interactions that never occur. Increase it only while comparing the rendered output with the target page.
Frequently Asked Questions
Can I pass a browser-exported cookie file directly?
Not reliably based on the cited option descriptions. They document that wkhtmltoimage reads and writes the supplied jar, but do not define a portable file format. Validate the file with the exact build you will run.
Does –custom-header-propagation guarantee the header is sent to every domain?
No such domain or redirect guarantee is stated in the reviewed documentation. The option is described as applying to each resource request; test the redirect and resource behavior of your installed build before relying on it across origins.
What should I do if my language wrapper has no cookie option?
Check that wrapper’s own API reference. The official library settings page marks cookie settings as incomplete, so invoking a verified wkhtmltoimage CLI may be more predictable than guessing an unimplemented property.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Is a longer JavaScript delay always safer?
No. It can increase runtime without fixing rejected API calls, missing credentials, or interactions that never occur. Increase it only while comparing the rendered output with the target page.
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.

