Capturing Web Pages

Options for automating the capture of a screen shot of a web page.

Paparazzi!
Paparazzi! is an OS X application for capturing screenshots of web pages. It is AppleScriptable to automate the capture of a page:

tell application "Paparazzi!"
  capture "http://www.google.com/"
  repeat while busy
    delay 1
  end repeat
  save in POSIX file "/Users/foo/Desktop/google.png" as PNG with icon
end tell

webkit2png
For a command-line only tool, consider webkit2png. It does require that you have PyObjC installed (OS X 10.5 has it already).
To install PyObjC on Mac OS X 10.3:

mkdir ~/Desktop/pyobjc
cd ~/Desktop/pyobjc
svn export http://svn.red-bean.com/pyobjc/branches/pyobjc-1.4-branch
cd pyobc-1.4-branch
python setup.py bdist_mpkg --open

Download and install webkit2png (got a compilation error on OS X 10.3.9 that I haven't figured out):

wget http://www.paulhammond.org/2009/03/webkit2png-0.5/webkit2png-0.5.txt
sudo mv webkit2png-0.5.txt /usr/local/bin/webkit2png
sudo chmod ugo+x /usr/local/bin/webkit2png

To use it:

webkit2png http://www.google.com/

Technology:

Recent Updates

  • 7 months 6 days ago
    1.27.2 update
  • 7 months 2 weeks ago
    Drupal 10/11 config
  • 7 months 2 weeks ago
  • PHP
    7 months 2 weeks ago
    PHP 8.3.11 and AlmaLinux
  • 7 months 2 weeks ago
    New version of Pound