Closed (fixed)
Project:
CAPTCHA
Version:
5.x-3.x-dev
Component:
Image Captcha (image_captcha)
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
13 Mar 2008 at 17:49 UTC
Updated:
21 May 2008 at 16:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
soxofaan commentedThe color issue is already being addressed in http://drupal.org/node/188599#comment-769835, be welcome to test this
Regarding the spacing issue: can you provide a font with the problem you describe to test this?
Comment #2
eMPee584 commentedhere's the font I use. I am currently trying the other patch.
Comment #3
soxofaan commentedThe patch from http://drupal.org/node/188599#comment-769911 (for 5.x-3.x) will probably not work on your 6.x-1.x setup. But you can check out the screenshot ;) . Please comment in that thread.
I will try to make a patch for 6.x-1.x
I tried your font and could reproduce the problem (e.g. see attachment: code is 5 characters long, but only 4 are visible)
I will have a look on how to fix this.
Or can you redo your patch without the color invert stuff?
Comment #4
soxofaan commentedIn attachment a patch for a revamped character placement (requires patch from http://drupal.org/node/188599#comment-782753 to be applied first)
The new implementation is more robust to the size issues like with the font from #2 (see example image, compare with #3)
No additional settings (like font space tuning param) are needed.
(already committed to HEAD: http://drupal.org/cvs?commit=107607)
Comment #5
soxofaan commented-
Comment #6
eMPee584 commentedhi soxofaan,
just checked out the CVS version, seems to work but even when setting character spacing to large, the resulting captcha (with large font size) just fits exactly, with less it doesn't. Also I do not quite understand the new bounding box code *g
Another thing, the color randomization does not ensure enough contrast between back- and foreground (which should imho rather been named text) color, I have set background to #000000 and foreground to #008000; with moderate randomization sometimes one character is way to dark (of course my foreground color is but I thought I'd try.. it's kinda more cool then my hack it actually gives a fitting captcha to my theme, see http://hfopi.org/contact) .. and well the double vision color is too near the foreground color too..
last but not least, I also just had converted the patch to 6.x but hey double effort means coding training for both of us huh ;)
cya
Comment #7
eMPee584 commentedand here's the space tuning patch without the invert colors stuff, though I doubt it helps very much ;)
Comment #8
soxofaan commentedWell, the problem lies with the font, it returns something bigger than requested. I don't believe it's the CAPTCHA module's job to support all possible corner cases of oversized/weird fonts, the image generating code is already kinky enough ;)
With the right settings it is however possible to get something usable with your font, so I wouldn't stretch this issue further.
I'll comment on the color issues in the related thread http://drupal.org/node/188599
Comment #9
soxofaan commentednew version of patch from #4 with better documentation
Comment #10
soxofaan commentedcommitted to DRUPAL-6--1 branch: http://drupal.org/cvs?commit=112558
Comment #11
soxofaan commentedcommitted to DRUPAL-5--3 branch: http://drupal.org/cvs?commit=112571
Comment #12
eMPee584 commentedhey soxofaan-- the last changes you committed to the 5.x branch fixed this once and for all... for the first time the whole code with this font is shown without me manually messing with the width and height parameters.. some characters run out of the image for a few pixels but it ain't no problem. Now my only issue left is contrast between double-vision shadow code and background color, but that's so minor i might not even do a patch myself. Looks good, thx!
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.