Fix default style, version 0.3.1
This commit is contained in:
parent
3a72c0ca58
commit
2760a064b5
|
@ -1,4 +1,4 @@
|
||||||
0.3.0
|
0.3.1
|
||||||
-----
|
-----
|
||||||
|
|
||||||
- More complex Image render: compact text, strong lines, +/-5 rotate...
|
- More complex Image render: compact text, strong lines, +/-5 rotate...
|
||||||
|
|
|
@ -15,7 +15,7 @@ module RuCaptcha
|
||||||
return @config if defined?(@config)
|
return @config if defined?(@config)
|
||||||
@config = Configuration.new
|
@config = Configuration.new
|
||||||
@config.len = 4
|
@config.len = 4
|
||||||
@config.font_size = 48
|
@config.font_size = 45
|
||||||
@config.implode = 0.4
|
@config.implode = 0.4
|
||||||
@config.cache_limit = 100
|
@config.cache_limit = 100
|
||||||
@config
|
@config
|
||||||
|
|
|
@ -52,7 +52,7 @@ module RuCaptcha
|
||||||
convert -size #{size} \
|
convert -size #{size} \
|
||||||
-strokewidth #{stroke_width} \
|
-strokewidth #{stroke_width} \
|
||||||
#{line_opts.join(' ')} \
|
#{line_opts.join(' ')} \
|
||||||
-pointsize #{font_size} -weight 700 \
|
-pointsize #{font_size} -weight 500 \
|
||||||
#{text_opts.join(' ')} \
|
#{text_opts.join(' ')} \
|
||||||
-wave #{rand(2) + 3}x#{rand(2) + 1} \
|
-wave #{rand(2) + 3}x#{rand(2) + 1} \
|
||||||
-rotate #{rand(10) - 5} \
|
-rotate #{rand(10) - 5} \
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
module RuCaptcha
|
module RuCaptcha
|
||||||
VERSION = '0.3.0'
|
VERSION = '0.3.1'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue