Home > Common Problem > Take full web page screenshots on Mac using the command line: Use webkit2png.

Take full web page screenshots on Mac using the command line: Use webkit2png.

WBOY
Release: 2023-05-07 20:07:06
forward
917 people have browsed it

How to capture full page screenshots on Mac via command line

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!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template