Git Product home page Git Product logo

splmap's Introduction

名称:sqlmap.js

简介:这是利用ES5.1临时开发的一个批量加载数据,合成3种类型图片的功能(文字图片,正常图片,视频合成图)。

开始使用:

var _btnimg = imgsrc;
var _loaddata = [_btnimg,imgsrc,imgsrc,imgsrc];
var _data=[{
	type:"text",          //图片类型分为['text','img','video']
	txt:"Hello World!"    //文字图片内容
},{
	type:"img",
	bgsrc:imgsrc,        //背景底图
	anonymous: false     //是否跨域,默认为false
},{
	type:"video",
	bgsrc:imgsrc,
	anonymous: false
}]
var sqlmap = new Sqlmap({	
        loaddata: _loaddata,   //预加载的图片数组
	width: 120,    //生成图片宽,默认为120
	height: 120,   //生成图片高,默认为120
	data: _data,      //所传入的需要生成的数据信息
	clarity: .8,      //生成图片质量压缩程度,默认为.8
	format: 'image/jpeg',   //生成图片格式,默认image/jpeg
	btn: _btnimg,          //视频按钮图片路径
	btnwidth: 48,          //视频按钮宽度,默认为48
	backgroundColor: "#fff",   //背景色,默认为#fff
	fontsize: 18,           //文字大小,默认为18
	maxsize: 6,             //文字最大数量,默认为6,
	fontcolor: "#999",      //文字颜色,默认为#999
	isshow: false          //生成画布是否显示,默认false
 },function(data){
   console.log(data); //[base64,base64,base64]
})

预览图片:

splmap's People

Contributors

jsmask avatar

Watchers

 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.