Home >Common Problem >Take full web page screenshots on Mac using the command line: Use webkit2png.
Using the webkit2png command line tool, you can capture full web page screenshots on Mac.
First you need to install Homebrew on your Mac,
brew install webkit2png
webkit2png After the installation is complete, you can use the following syntax in the command line Take a screenshot of a full page:
webkit2png -F https://osxdaily.com
The -F flag specifies a full page.
You can also specify the width (in pixels) of the browser screenshot using -W, like this:
webkit2png -F -W 1000 https://osxdaily .com
Important note about capturing screenshots of pages with lazy-loaded images: If you are taking a screenshot of a webpage that uses lazy loading to speed up site loading and page speed Screenshots, which are so common on the modern web, most web page images are not captured in screenshots.
The above is the detailed content of Take full web page screenshots on Mac using the command line: Use webkit2png.. For more information, please follow other related articles on the PHP Chinese website!