UBB.Dev
Posted By: 1QuickSI Image recognition during signup - 12/07/2004 8:12 AM
Would be nice to have and put an end to robot signups smile Anyone?
Posted By: Gizmo Re: Image recognition during signup - 12/07/2004 9:16 AM
I don't see it really being added as a feature short of requiring GD or ImageMagick smirk... Ian would be the best to ask though as he's the onlyone who seems to have the time (in 8 days anyway)
Posted By: Ian Spence Re: Image recognition during signup - 12/07/2004 4:17 PM
Quote
Originally posted by Gizzy:

I don't see it really being added as a feature short of requiring GD or ImageMagick smirk... Ian would be the best to ask though as he's the onlyone who seems to have the time (in 8 days anyway)

What about the fact that CTM already wrote one, but never released it?
Posted By: Gizmo Re: Image recognition during signup - 12/07/2004 8:12 PM
Yeh well, I'm not CTM nor do I have the modification :x...
Posted By: CTM Re: Image recognition during signup - 12/13/2004 8:49 PM
I'll get this one docced and released by the weekend. smile
Posted By: Burak Re: Image recognition during signup - 12/23/2004 1:36 AM
I'd like to see that smile
Posted By: Painfool Re: Image recognition during signup - 01/17/2005 6:45 PM
What weekend was it the last one or the next one smile
Posted By: 1QuickSI Re: Image recognition during signup - 01/17/2005 9:44 PM
CTM has released this to me. It has a test program that has to pass in order for this to work (GD Libraries) Unfortunatly I have not yet been able to get it to work as all it does is give me a blank screen.

CTM, if you see this you have a PM waiting smile

I also made a small change to the install directions (just a type)
Posted By: CTM Re: Image recognition during signup - 01/18/2005 1:10 AM
Sorry, I didn't notice the PM until now. I didn't receive an email telling me that I'd received a PM here for some reason. confused

If you're referring to getting a blank screen after registering, that sounds like a problem with the GD module. The only way to be certain is to register again, then check the Apache error logs to see what turns up there. It'll most likely tell you that either GD or GD::SecurityImage aren't installed. Do you have access to the logs?
Posted By: Burak Re: Image recognition during signup - 01/18/2005 11:44 AM
or try this test code:

Code
#!/usr/bin/perl -w
use strict;
# use lib "/path/to/ubbmod/dirs"; # or where you put GD::SI
use CGI qw[header];

my @error;
my @ok;

test($_) foreach qw(GD Image::Magick GD::SecurityImage);

print header();
if (@error) {
print "<h1>ERRORS</h1>".join("
n", @error);
}
if(@ok) {
print qq~<h1>INSTALLED VERSIONS</h1>~;
print "$_->[0]tv$_->[1]
n" foreach @ok;
}

sub test {
my $mod = shift &#0124;&#0124; return;
eval "require $mod";
if($@) {
push @error, $@;
} else {
push @ok, [$mod, $mod->VERSION];
}
}
you can then try this test code

Code
#!/usr/bin/perl -w
use strict;
# use lib "/path/to/ubbmod/dirs"; # or where you put GD::SI
use CGI qw[header];

eval {
require GD::SecurityImage;
#GD::SecurityImage->import(use_magick => 1); # if you have Image::Magick
GD::SecurityImage->import;
my($data, $mime, $rnd) = GD::SecurityImage->new(lines => 3)->random("123456")->create->out;
binmode STDOUT;
print header(-type => "image/$mime") . $data;
};

if($@) {
print header().qq~<h1>FATAL ERROR</h1> <pre>$@</pre>~;
}

exit;
© UBB.Developers