← 返回命令列表

Linux command

cutycapt 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Capture webpage as PNG

cutycapt --url=[https://example.com] --out=[screenshot.png]

Capture as PDF

cutycapt --url=[https://example.com] --out=[page.pdf]

Set viewport size

cutycapt --url=[url] --out=[out.png] --min-width=[1920] --min-height=[1080]

Capture with delay

cutycapt --url=[url] --out=[out.png] --delay=[2000]

Disable JavaScript

cutycapt --url=[url] --out=[out.png] --javascript=off

Run headless with Xvfb

xvfb-run cutycapt --url=[url] --out=[out.png]

说明

cutycapt captures WebKit rendering of web pages to images or documents. Supports PNG, JPEG, PDF, SVG, PS, and other formats. Uses Qt WebKit engine for rendering.

参数

--url _url_
URL to capture (http://, file://, etc.)
--out _file_
Output file path
--out-format _format_
Output format (overrides extension)
--min-width _pixels_
Minimum width (default: 800)
--min-height _pixels_
Minimum height (default: 600)
--max-width _pixels_
Maximum width
--max-height _pixels_
Maximum height
--delay _ms_
Delay after load (default: 0)
--max-wait _ms_
Maximum wait time (default: 90000)
--zoom _factor_
Zoom factor
--javascript on|off
Enable/disable JavaScript
--plugins on|off
Enable/disable plugins
--proxy _host:port_
HTTP proxy
--header _name:value_
Custom request header
--method get|post|put
HTTP method

FAQ

What is the cutycapt command used for?

cutycapt captures WebKit rendering of web pages to images or documents. Supports PNG, JPEG, PDF, SVG, PS, and other formats. Uses Qt WebKit engine for rendering.

How do I run a basic cutycapt example?

Run `cutycapt --url=[https://example.com] --out=[screenshot.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --url _url_ do in cutycapt?

URL to capture (http://, file://, etc.)