Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced image rendering methods #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 17, 2013

  1. Added new methods to the native module to allow:

    - captureBytes() - alternative to capture - will return a node Buffer with image data rather than saving to file.
    - renderSnippet() - render a snippet of HTML rather than a remote URL.
    - clipToElement() - clip the rendering to a given element (by css selector). Will work with capture() and captureBytes()
    
    A combination of these new methods will allow a streamlined pipeline if you wish to render the contents of a locally held snippet of html and return it directly via a webserver.
    This will avoid a number of unnecessary file save/loads or converting image data to Base64.
    dhendo committed Jul 17, 2013
    Configuration menu
    Copy the full SHA
    6fb02da View commit details
    Browse the repository at this point in the history