GithubHelp home page GithubHelp logo

htmlimage's Introduction

htmlimage-puppeteer

This code gives you a parameterable option to generate images, gifs and videos at server side. I take care for your server and close every processes when the generation finished.

The code contains htmlimage, htmlvideo and htmlgif converter.

Call node htmlimage.js url=google.com width=300 height=250 output=image.jpg type=jpeg delay=1500 timeoutInSeconds=120 fullPage=false in cli and take screenshot with puppeteer.

Or node htmlvideo.js url=google.com width=300 height=250 duration=7000 output=video.mp4 delay=0 and create video.

Or node htmlgif.js url=google.com

Installation

Required stuff:

  • What you need for pupeteer (chrome driver, chrome) read more at https://pptr.dev/
  • Nodejs
  • FFmpeg for gif generation

Use json

You can add json structure if you want to automatize the code:

node htmlvideo.js json='{url: "google.com"}'

Or you can set multiple options if you put to array like this:

node htmlgif.js json='[{url: "google.com"}]'

Create gifs from google, facebook and youtube

Please test with this line, it will generate gifs from google, facebook and youtube:

node htmlgif.js json='[{"url":"https://google.com","output":"google.gif"},{"url":"https://facebook.com","output":"facebook.gif"},{"url":"https://youtube.com","output":"youtube.gif"}]'

htmlimage's People

Contributors

szotyi41 avatar

Watchers

James Cloos avatar  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.