Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwrite ImageMagick params #22

Open
philipgiuliani opened this issue Jul 18, 2014 · 0 comments
Open

Overwrite ImageMagick params #22

philipgiuliani opened this issue Jul 18, 2014 · 0 comments

Comments

@philipgiuliani
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant