Skip to main content
wb1234567890
Participant
Mar 30, 2016 5:28 PM UTC
Question

cfimage with captcha does not display all the text

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?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    WolfShade
    Legend
    Mar 30, 2016 7:09 PM UTC

    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,

    ^_^

    Translate
    wb1234567890
    Participant
    Mar 30, 2016 7:13 PM UTC

    400 & 100

    <cfimage action="captcha" text="test" width="400" height="100" difficulty ="low">

    Translate
    WolfShade
    Legend
    Mar 30, 2016 8:21 PM UTC

    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,

    ^_^

    Translate