pludoni / simple-captcha

Rails 3+4 support now! Simple Captcha is the simplest and a robust captcha plugin. Its implementation requires adding up a single line in views and in controllers/models.
MIT License
106 stars 73 forks source link

Overwrite ImageMagick params #22

Open philipgiuliani opened 10 years ago

philipgiuliani commented 10 years ago

Its possible to overwrite ImageMagick params that are set in generate_simple_captcha_image like the -pointsize or -gravity? https://github.com/pludoni/simple-captcha/blob/master/lib/simple_captcha/image.rb#L67

I tried the following

sc.add_image_style('custom', [
      "-background '#FFFFFF'",
      "-fill '#6abc89'",
      "-pointsize 30"])

would be cool if the image style gets merged after the default settings, so that it could be overwritten.