Skip to content
forked from baidu/mix-img

A fast mix image javascript tool libary

License

Notifications You must be signed in to change notification settings

moe-ask/mix-img

 
 

Repository files navigation

mix-img

mix-img图片合成工具,通过调用canvas API实现包括图片和文字的合成并最终生成图片base64,合成成功后向用户展示和分享。

image

Install

npm install --save mix-img

Quick Start

import {mixImg} from 'mix-img';
import {mixConfig} from './mixConfig';  // 配置文件路径自定义
async function getImg() {
    const res = await mixImg(mixConfig);
    console.log('图片合成结束', res);
}

mixConfig参数配置可参见参数说明文档;Lib库使用者可以通过调试工具在本地进行预览调试,生成配置。

Document

ChangeLog

Please visit document ChangeLog

About

A fast mix image javascript tool libary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.4%
  • Vue 20.1%
  • Less 11.6%
  • HTML 3.1%
  • Shell 0.8%