Giter Site home page Giter Site logo

puppeteer-screenshot's Introduction

sreenshot

GET / 可参考

arguments default required desc
url - true sreenshot webpage url
type png false image type
quality - false 图片质量, 可选值 0-100. png 类型不适用
fullPage true false 对完整的页面截图
x 0 false 裁剪区域相对于左上角(0, 0)的x坐标
y 0 false 裁剪区域相对于左上角(0, 0)的y坐标
w 200 false 裁剪的宽度
h 200 false 裁剪的高度
o false false 隐藏默认的白色背景,背景透明
device iPhone 8 false 模拟设备,可选值参考

POST /

arguments type default required desc
url string - false 和html属性至少有一个,html属性优先级高
html string - false 要渲染的html代码
screenshot object - false 参考
device string iPhone 8 false 可选值参考
style string - false 参考
script string - false 参考
waitFor string/number - false 参考

font

puppeteer-screenshot's People

Contributors

secreter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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