Forrest logo
back to the pageres tool

pageres:tldr:b2195

pageres: Provide specific options for a URL, overriding global options.
$ pageres [${https:--example-com-} ${1366x768} --no-crop] [${https:--example2-com-} ${1024x768}] --crop
try on your machine

The command you provided is using the pageres tool to capture screenshots of webpages at specified resolutions. Here is a breakdown of the command syntax:

  1. pageres: This is the command to run the pageres tool.

  2. [${https:--example-com-} ${1366x768} --no-crop]: This specifies the first webpage to be captured.

    • ${https:--example-com-}: This is the URL of the webpage you want to capture. Replace it with the actual URL.

    • ${1366x768}: This is the resolution at which the webpage should be captured. In this case, it is set to 1366x768 pixels, which represents a common screen resolution. You can change it to your desired resolution.

    • --no-crop: This flag specifies that the entire webpage should be captured without cropping any part of it.

  3. [${https:--example2-com-} ${1024x768}]: This specifies the second webpage to be captured. It follows a similar structure as the first webpage.

  4. --crop: This flag instructs the pageres tool to crop the captured screenshots based on the dimensions specified for each webpage. Without this flag, the captured screenshots would be the full size of the browser viewport.

To summarize, this command uses pageres to capture screenshots of two webpages, one at a resolution of 1366x768 without cropping, and the other at a resolution of 1024x768 with cropping.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pageres tool