Project

tjstamp

0.01
No commit activity in last 3 years
No release in over 3 years
A tool for generating Chinese charater stamp image.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

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