1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 12:35:23 +02:00
tldr/pages/common/pageres.md
Managor dd77012848
common*: refresh old pages part 4 (#16258)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-04-26 06:25:38 +03:00

28 lines
923 B
Markdown

# pageres
> Capture screenshots of websites in various resolutions.
> More information: <https://github.com/sindresorhus/pageres-cli>.
- Take multiple screenshots of multiple URLs at different resolutions:
`pageres {{https://example.com/}} {{https://example2.com/}} {{1366x768}} {{1600x900}}`
- Provide specific options for a URL, overriding global options:
`pageres [{{https://example.com/}} {{1366x768}} --no-crop] [{{https://example2.com/}} {{1024x768}}] {{[-c|--crop]}}`
- Provide a custom filename template:
`pageres {{https://example.com/}} {{1024x768}} --filename={{'<%= date %> - <%= url %>'}}`
- Capture a specific element on a page:
`pageres {{https://example.com/}} {{1366x768}} --selector='{{.page-header}}'`
- Hide a specific element:
`pageres {{https://example.com/}} {{1366x768}} --hide='{{.page-header}}'`
- Capture a screenshot of a local file:
`pageres {{local_file_path.html}} {{1366x768}}`