LinuxCommandLibrary

cutycapt

TLDR

Capture webpage as PNG

$ cutycapt --url=[https://example.com] --out=[screenshot.png]
copy
Capture as PDF
$ cutycapt --url=[https://example.com] --out=[page.pdf]
copy
Set viewport size
$ cutycapt --url=[url] --out=[out.png] --min-width=[1920] --min-height=[1080]
copy
Capture with delay
$ cutycapt --url=[url] --out=[out.png] --delay=[2000]
copy
Disable JavaScript
$ cutycapt --url=[url] --out=[out.png] --javascript=off
copy
Run headless with Xvfb
$ xvfb-run cutycapt --url=[url] --out=[out.png]
copy

SYNOPSIS

cutycapt --url=url --out=file [options]

DESCRIPTION

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.

PARAMETERS

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

OUTPUT FORMATS

svg, pdf, ps, png, jpeg, tiff, gif, bmp, mng, ppm, xbm, xpm

CAVEATS

Requires X server. Use xvfb-run for headless environments. Based on older Qt WebKit (not Chromium).

SEE ALSO

Copied to clipboard