Forum Discussion
How to take a scrolling screenshot on mac for long pages
If you're comfortable with the command line, using webkit2png to take a scrolling screenshot on Mac is actually pretty simple once you get it set up. Since it's a command-line tool, the setup happens in one go, and then it's just a single command each time you want to use it.
Step 1: Install Homebrew
Homebrew is a package manager that makes installing command-line tools like webkit2png much easier. Open your Terminal app (in Applications > Utilities) and paste this command:
bash
/bin/bash -c "$(curl -fsSL https//raw,githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Just follow the on-screen prompts—it'll walk you through it.
Step 2: Install webkit2png
Once Homebrew is ready, installing webkit2png is just one more command:
bash
brew install webkit2png
That's it for the setup.
Step 3: Take a Scrolling Screenshot on Mac
Now you're ready to actually capture a full webpage. In Terminal, use this command format:
bash
webkit2png -F https//example,com
The -F flag tells it to capture the entire page. So if you wanted to capture this very conversation, you'd run something like:
bash
webkit2png -F https//example,com/your- page
Step 4: Find Your Screenshot
After running the command, webkit2png will save a PNG file to your current working directory—usually your home folder by default. The filename will be based on the URL you used.
Just keep in mind that webkit2png doesn't always play nice with lazy-loaded images—if a page loads images only as you scroll, some might not show up in the final screenshot. So if you're capturing a page with a lot of lazy-loaded images, you might want to test it first or consider an alternative tool.