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 for more information. Default:"red" -
background_color: Default:"none"