Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

image-template-generator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-template-generator

> 通过创建的模板,快速生成对应的图片,用以:自动生成营销分享图片、批量生成不同二维码的图片等等

  • 0.0.1
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

imageTemplateGenerator

通过创建的模板,快速生成对应的图片,用以:自动生成营销分享图片、批量生成不同二维码的图片等等

入门

一、环境依赖

imageTemplateGenerator 基于 gm ,所以同gm的依赖,需要安装对应的工具。

参考: https://github.com/aheckmann/gm#getting-started

$ brew install imagemagick
$ brew install graphicsmagick
$ brew install ghostscript

二、试用

下载文件到任意目录,并安装依赖:

$ git clone git://github.com/xiongwilee/imageTemplateGenerator.git
$ cd imageTemplateGenerator
$ npm install

执行示例文件:

$ cd example
$ node index.js

提示:

生成图片成功: ./merged.png !

则操作成功。

详细说明

一、使用方法

二、详细配置

三、TODO

  • 添加测试用例
  • 文字行高,及自动换行功能
  • 字体扩展,目前仅支持 SourceHanSerifCN-Normal.ttf

贡献

欢迎提issue、fork;有任何疑问也可以邮件联系:xiongwilee[at]foxmail.com。

FAQs

Package last updated on 07 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc