Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tonytonyjan/tjstamp
- Owner: tonytonyjan
- Created: 2013-10-14T09:07:29.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-21T01:53:46.000Z (about 11 years ago)
- Last Synced: 2024-11-07T21:46:16.249Z (about 2 months ago)
- Language: Ruby
- Homepage: http://tjstamp.tonytonyjan.net
- Size: 4.58 MB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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"`