GithubHelp home page GithubHelp logo

isabella232 / dreamcatcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from persado/dreamcatcher

0.0 0.0 0.0 1.91 MB

Image and PDF web page capture service using Node and Puppeteer

Home Page: https://persado.github.io/dreamcatcher/

License: MIT License

JavaScript 100.00%

dreamcatcher's Introduction

Node-based service providing a lightweight API for generating JPEG/PNG and PDF representations of a web page, using headless Chrome and Puppeteer.

Quick Start

  • Install depencencies with npm install.
  • To install additional fonts in the built image, place them in a top-level fonts directory.
  • To start the server, npm start.

Consult the documentation for configuration options and usage.

Troubleshooting Tips

  • When testing Dreamcatcher locally using Docker and a locally-served target site, be sure to use your machine's external-facing IP address in the url parameter (rather than localhost).
  • If your generated image files seem to be twice as large as the requested dimensions, it's because Dreamcatcher sets by default the deviceScaleFactor property of the Chromium viewport to 2, so as to generate images suitable for high-resolution "retina" displays. To override, pass the scaleFactor parameter (e.g. scaleFactor: 1).

dreamcatcher's People

Contributors

adamyliang avatar avel avatar binarydev avatar dependabot[bot] avatar drsloth avatar hmwillson avatar jdcapili avatar kanuff avatar kouk avatar michaelschwar3 avatar ohball avatar rowidont avatar tseleski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.