LinuxCommandLibrary

pageres

Capture website screenshots with specified resolutions

TLDR

Take multiple screenshots of multiple URLs at different resolutions

$ pageres [https://example.com/] [https://example2.com/] [1366x768] [1600x900]
copy

Provide specific options for a URL, overriding global options
$ pageres [[https://example.com/] [1366x768] --no-crop] [[https://example2.com/] [1024x768]] [[-c|--crop]]
copy

Provide a custom filename template
$ pageres [https://example.com/] [1024x768] --filename=['<%= date %> - <%= url %>']
copy

Capture a specific element on a page
$ pageres [https://example.com/] [1366x768] --selector='[.page-header]'
copy

Hide a specific element
$ pageres [https://example.com/] [1366x768] --hide='[.page-header]'
copy

Capture a screenshot of a local file
$ pageres [local_file_path.html] [1366x768]
copy

SYNOPSIS

pageres <urls> <resolutions> [options]

PARAMETERS


    A space-separated list of URLs to capture screenshots of. E.g., example.com google.com


    A space-separated list of resolutions (viewport sizes) in the format 'widthxheight'. E.g., 1024x768 1280x800 1920x1080

-d, --delay
    Delay capturing the screenshot by the specified number of seconds.

-f, --filename