pageres:tldr:b2195
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:
-
pageres: This is the command to run the pageres tool.
-
[${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.
-
-
[${https:--example2-com-} ${1024x768}]: This specifies the second webpage to be captured. It follows a similar structure as the first webpage.
-
--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.