Simple Captcha for Rails

check out the simple captcha plugin for rails…
http://expressica.com/2007/02/06/simple-captcha-released-the-captcha-for-rails-applications/

it is really simple to implement, just need one line of code in view and
one line of code in controller or model as required. And it provides
multiple image styles to be selected from.

it is really simple to implement, just need one line of code in view and
one line of code in controller or model as required.

and it needs imagemagick. i’m waiting for someone to write some
pure-ruby image tools such as perl’s imager - see http://imager.perl.org
or http://search.cpan.org/~tonyc/Imager-0.55/Imager.pm

i just found one ruby library that seems to do the same - the
documentation is in japanese, so i don’t understand a single word.
http://raa.ruby-lang.org/project/pureimage/

not all the hosts have imagemagick by default.

Dear Sur M.,

I’m sorry to bother you but I have encountered a problem with
simple_captcha regarding how the images are generated. The plugin is
really fantastic, easy to use, very easy to install. My issue is that
on my development system it works flawlessly, but when I deploy to a
joyent accelerator the image is not legible. I’m guessing it’s due to
differences in rmagick or imagemagick. Have you heard of this issue?

You can see the squished image at
http://www.gogonova.com/active_rbac/registration/register

I suspect it is an rmagick version issue, but I don’t really know.

In any case, I would appreciate any help, but of course I understand
you are likely busy. You can certainly tell me to figure it out
myself or just ignore me completely and I will understand. Any
pointers you have would be great.

Sincerely,

Mike Vargo

Version info…

on the production server (broken one) I have:

-bash-3.00$ convert --version
Version: ImageMagick 6.2.9 09/22/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC

-bash-3.00$ gem list rmagick

*** LOCAL GEMS ***

rmagick (1.15.5)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.

On the development box (where it works) I have:

mvargo@linuxlaptop:~$ convert -version
Version: ImageMagick 6.2.4 07/09/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC

mvargo@linuxlaptop:~$ gem list rmagick

*** LOCAL GEMS ***

rmagick (1.15.0)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.

Hey Guys,

I am in process of removing RMagick completely from the plugin. Just
wait for a few more days.

I will update the information on my blog http://expressica.com

Thanks.

Robert Caveney wrote:

Hello Mike,

I am having the same issue on an accelerator with simple_captcha.

It works perfectly on the development system and then the image is not
legible on the accelerator.

Did you ever find out what the problem was?

Many thanks in advance,

Hello Mike,

I am having the same issue on an accelerator with simple_captcha.

It works perfectly on the development system and then the image is not
legible on the accelerator.

Did you ever find out what the problem was?

Many thanks in advance,

Bob

mvargo wrote:

Dear Sur M.,

I’m sorry to bother you but I have encountered a problem with
simple_captcha regarding how the images are generated. The plugin is
really fantastic, easy to use, very easy to install. My issue is that
on my development system it works flawlessly, but when I deploy to a
joyent accelerator the image is not legible. I’m guessing it’s due to
differences in rmagick or imagemagick. Have you heard of this issue?

You can see the squished image at
http://www.gogonova.com/active_rbac/registration/register

I suspect it is an rmagick version issue, but I don’t really know.

In any case, I would appreciate any help, but of course I understand
you are likely busy. You can certainly tell me to figure it out
myself or just ignore me completely and I will understand. Any
pointers you have would be great.

Sincerely,

Mike Vargo

Version info…

on the production server (broken one) I have:

-bash-3.00$ convert --version
Version: ImageMagick 6.2.9 09/22/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC

-bash-3.00$ gem list rmagick

*** LOCAL GEMS ***

rmagick (1.15.5)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.

On the development box (where it works) I have:

mvargo@linuxlaptop:~$ convert -version
Version: ImageMagick 6.2.4 07/09/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC

mvargo@linuxlaptop:~$ gem list rmagick

*** LOCAL GEMS ***

rmagick (1.15.0)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.

Hello Everyone,

SimpleCaptcha has been updated with Major Changes.

* No Pre-Requisites
* RMagick NOT required anymore
* FileSystem Usage Removed
* No third part dependency(NO API call!)
* Works Perfectly with Multiple Clustered Servers
* A completely local application based ZERO DEPENDENCY CAPTCHA

Read here( http://expressica.com/simple_captcha ) for more details.

Very kind.

Many thanks again.

Sur M. wrote:

Hey Guys,

I am in process of removing RMagick completely from the plugin. Just
wait for a few more days.

I will update the information on my blog http://expressica.com

Thanks.

Robert Caveney wrote:

Hello Mike,

I am having the same issue on an accelerator with simple_captcha.

It works perfectly on the development system and then the image is not
legible on the accelerator.

Did you ever find out what the problem was?

Many thanks in advance,

Hi Sur,
I tried to download the Simple_Captch pluggin fron
expressica but I didnt get any download option instead it is showing
that it is under maintainance. How can i get that pluggin?
Awaiting your response.

Regards,
Subhash

On Dec 22 2007, 2:02 pm, Sur M. [email protected]

Hello,

I’m also attempting to set up simple captcha on a joyent accelarator,
and am running on the same problem. By clicking on the link
http://www.gogonova.com/active_rbac/registration/register, it seems like
you guys have fixed the problem. Was the problem with
rmagick/imagemagick? Does the version of the plugin that doesn’t use
them solve the issue? It seems like rmagick has been added back in to
the newest version. Any help/insight at all would be appreciated.

Best,
-Gene

mvargo wrote:

Dear Sur M.,

I’m sorry to bother you but I have encountered a problem with
simple_captcha regarding how the images are generated. The plugin is
really fantastic, easy to use, very easy to install. My issue is that
on my development system it works flawlessly, but when I deploy to a
joyent accelerator the image is not legible. I’m guessing it’s due to
differences in rmagick or imagemagick. Have you heard of this issue?

You can see the squished image at
http://www.gogonova.com/active_rbac/registration/register

I suspect it is an rmagick version issue, but I don’t really know.

In any case, I would appreciate any help, but of course I understand
you are likely busy. You can certainly tell me to figure it out
myself or just ignore me completely and I will understand. Any
pointers you have would be great.

Sincerely,

Mike Vargo

Version info…

on the production server (broken one) I have:

-bash-3.00$ convert --version
Version: ImageMagick 6.2.9 09/22/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC

-bash-3.00$ gem list rmagick

*** LOCAL GEMS ***

rmagick (1.15.5)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.

On the development box (where it works) I have:

mvargo@linuxlaptop:~$ convert -version
Version: ImageMagick 6.2.4 07/09/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC

mvargo@linuxlaptop:~$ gem list rmagick

*** LOCAL GEMS ***

rmagick (1.15.0)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.