Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonytonyjan/tjstamp

A tool for generating Chinese characters stamp image
https://github.com/tonytonyjan/tjstamp

Last synced: about 1 month ago
JSON representation

A tool for generating Chinese characters stamp image

Awesome Lists containing this project

README

        

TJStamp
=======


朕知道了
王小明
愉悅
爽

Demo Site
---------

http://tjstamp.tonytonyjan.net

Installation
------------

> gem install tjstamp

Example
-------

# Basic Usage
require 'tjstamp'
tjs = TJStamp.new(name: '朕知道了', background_color: 'white')
image = tjs.stamp # => Magick::Image
image.display

# Write to file
tjs.update name: '王小明', size: 512
tjs.stamp.write '/tmp/wang.png'

Options
-------

* `name`: Default: `"王小明"`
* `size:` Default: `256`
* `corner_size`: Default: `10`
* `stroke_width`: Default: `20`
* `font`: Path to font file, Default: `"simsun.ttf"`
* `color`: [Check here](http://studio.imagemagick.org/RMagick/doc/imusage.html#color_names) for more information. Default: `"red"`
* `background_color`: Default: `"none"`