Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Commits on May 18, 2014
  1. Release v0.7

Commits on Mar 11, 2014
  1. Size the window correctly

    Thanks to Antoni Sawicki for pointing out the mistake here.
Commits on Feb 19, 2014
  1. Merge pull request #65 from herrstucki/fix-retina

    Fix cropping on retina displays
Commits on Feb 12, 2014
  1. @herrstucki
Commits on Oct 21, 2013
  1. Ignore more NSURLErrorCancelled Errors (fixes #58)

    Ignore these errors in just `didFailProvisionalLoadWithError` wasn't enough.
Commits on Sep 6, 2013
  1. @mhoffmeyerDC

    Add option to ignore SSL certificate errors

    mhoffmeyerDC authored committed
    Closes #57
Commits on Aug 27, 2013
  1. Ignore NSURLErrorCancelled Errors (fixes #41)

    NSURLErrorCancelled is returned "when an asynchronous load is canceled",
    which in the real world happens a lot with things like Facebook like iframes.
    Everything I've read suggests it can be safely ignored when in
  2. Support local file path arguments.

    This is based on an idea from Leigh Mannes (
Commits on Aug 26, 2013
  1. Update user-agent

Commits on Aug 15, 2013
  1. Fix bad rebase.

    When I rebased 97bf285 to make
    4f2c1fb I made a stupid cut and paste error.
  2. @scoates

    Remove http(s) proto before non-word characters

    scoates authored committed
    (Fixes #51)
  3. Merge pull request #50 from scoates/pep8

    whitespace, and general PEP8 scrubbing
  4. @scoates
  5. @spicyj

    Allow specifying a CSS selector to crop to

    spicyj authored committed
    Overlapping elements, if any, will be captured as well. Fixes #42.
Commits on Aug 14, 2013
  1. Merge pull request #40 from spicyj/dock-icon

    Hide the dock icon
Commits on Apr 25, 2013
  1. @spicyj

    Hide the dock icon

    spicyj authored
Commits on Apr 24, 2013
  1. Merge pull request #39 from spicyj/async-js

    Allow waiting for async JS to capture the image
  2. @spicyj

    Allow waiting for async JS to capture the image

    spicyj authored
    With this change, webkit2png is able to wait for arbitrary asynchronous
    JavaScript to finish before capturing the screenshot. Use code such as:
        webkit2png.stop();  // wait for start() before capturing
        $.get("/path/to/handler", function(data) {
    and the picture won't be captured until the AJAX request returns. (I
    stole the names 'start' and 'stop' from QUnit:
Commits on Apr 1, 2013
  1. Better default user agent

Commits on Mar 31, 2013
  1. Release v0.6

  2. README fussing

Commits on Mar 23, 2013
  1. Merge pull request #34 from seanhellwig/master

    Adjust filename RegEx to support http and https
Commits on Mar 22, 2013
  1. @seanhellwig
Commits on Jul 17, 2012
  1. Better documentation

    Closes #22
  2. Add --user-agent option.

    Based on patches by Justin Donato and Tobias Tom.
Commits on Nov 30, 2011
  1. Support for webkit-transform (thanks Nate Weaver)

    As noted in #13, the method
    we used to capture the contents of the window didn't work with
    webkit-transform. Nate Weaver (@wevar) provided some nifty code that should
    fix this when run on Mac OS X 10.5 or later whilst still letting the script
    run on older versions.
    Only problem is that I've only been able to test this on 10.7, 10.6 and 10.5.
    I don't think many people are running webkit2png on older OS versions so this
    should be OK.
  2. Make webkit2png executable

  3. @charliesome

    fix crashing on timeout

    charliesome authored committed
Something went wrong with that request. Please try again.