Modify default implode amount

This commit is contained in:
Guillaume DOTT 2013-01-11 15:25:18 +01:00
parent 0aa664d0f3
commit 8e3f9cb12d
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ ReallySimpleCaptcha::Captcha::PlainCaptcha.configure do |config|
# image modification options
config.width = 120
config.height = 40
config.implode_amount = 0.2
config.implode_amount = 0.3
config.wave_amplitude = 4.0
config.wave_length = 60.0
end

View File

@ -8,7 +8,7 @@ module ReallySimpleCaptcha::Captcha
height: 40,
wave_amplitude: 4.0,
wave_length: 60.0,
implode_amount: 0.2,
implode_amount: 0.3,
pointsize: 22,
text_fill: 'darkblue',
background_color: 'white'
@ -75,7 +75,7 @@ module ReallySimpleCaptcha::Captcha
text.annotate(image, 0, 0, 0, 0, captcha_text)
image = image.wave(options[:wave_amplitude], options[:wave_length]).implode(options[:implode_amount])
image = image.implode(options[:implode_amount]).wave(options[:wave_amplitude], options[:wave_length])
Base64.strict_encode64(image.to_blob { self.format = 'GIF' })
end