Copy link to clipboard
Copied
I am using the cfimage tag with action="captcha" and text="someText". SomeText is replaced with a random string between 4 & 7 characters. Sometimes when the captcha is displayed it doesn't show all the characters that was passed in the text argument. For testing I display the text that is passed into the cfimage tage above the captcha box so I know what should be displayed. I also tried putting in static text like the word test and there were times it didn't display all 4 letters.
I am using Coldfusion 11
Any ideas?
Copy link to clipboard
Copied
What are the width and height dimensions that you are setting for the image? There might be a minimum width/height in order to display all the letters.
HTH,
^_^
Copy link to clipboard
Copied
400 & 100
<cfimage action="captcha" text="test" width="400" height="100" difficulty ="low">
Copy link to clipboard
Copied
Hmmm.. that _should_ be large enough..
I should have asked this in my first response, but didn't think of it until now: Could you please post two or three screencaps of when it isn't doing what you think it should do?
V/r,
^_^
Copy link to clipboard
Copied
In this case I am passing in H9JPB and it isn't displaying the "J"
In this case it actually displayed the wrong letter. It should be AD738 but it dplayed 0D738. The 0 or o isn't even an option as one of the possible characters
in this case it isn't showing the "N"
Copy link to clipboard
Copied
That's a head-scratcher, for sure. I can't think of anything, off the top of my head, that would cause that to happen. Especially displaying "0" when it should be an "A".
V/r,
^_^