nodejs-screen-capture

0.3.0 • Public • Published

Node Screen Capture

Part of Presentation Remote project. This module uses Java Screen Capture to capture screenshots.

Note

This module is currently under heavy development and very unstable.

Usage

After loading module you can do this actions:

  • Capture a screenshot and save as file with .captureAndSave(width, height, format, file)
  • Capture a screenshot and get image as base64 string with .captureAndGetBase64(width, height, format).
  • Capture a screenshot and get file with standard output stream with .captureAndGetStream(width, height, format). (screenshot in the shape of string thet given from standard output stream).

You can use this values as format parameter in above methods.

  • IMAGE_FORMAT_PNG as PNG format
  • IMAGE_FORMAT_JPG as JPG format
  • IMAGE_FORMAT_GIF as GIF format

Changes (V 0.3.0)

  • Callback is removed from parameters of captureAndGetBase64 function
  • Empty output bux is fixed

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i nodejs-screen-capture

      Weekly Downloads

      19

      Version

      0.3.0

      License

      LGPL-3.0

      Unpacked Size

      451 kB

      Total Files

      11

      Last publish

      Collaborators

      • amiraslanaslani