Skip to content

yieldbot/page_capture

Repository files navigation

Page Capture (by Yieldbot)

Build Status GitHub version

A Chrome Extension that allows page capturing from within your Web Application.

http://yieldbot.github.io/page_capture/

API (TODO - hook up jsdoc)

  • getVersion(cb): get the version number
  • capturePage(cb): capture the entire page of a given url
  • captureElement(elementId, cb): capture an element on a given url
  • captureElementWithOffset(elementId, extraLeft, extraTop, cb): capture an element with extra offset on a given url
  • captureSection(x, y, width, height, cb): capture a section a given url
  • captureImage(imgUrl, width, height, cb): capture an external image
  • captureUrl(url, cb): capture an external page
  • captureUrlWithOverlay(url, imgUrl, includeOverlay, cb): capture an external page with an overlay

Want to contribute?

Releasing A New Version

  • make code changes + git commit (don't bump package.json version, this is done as part of cut_release)
  • npm run cut_release
  • git fetch
  • git rebase
  • git push
  • git push origin --tags
  • check the travis build

Example

see test/index.html

License

Licensed under The MIT License (MIT)

For the full copyright and license information, please view the LICENSE.txt file.