Skip to main content
wb1234567890
Participant
March 30, 2016
Question

cfimage with captcha does not display all the text

  • March 30, 2016
  • 1 reply
  • 538 views

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 has been closed for replies.

    1 reply

    WolfShade
    Legend
    March 30, 2016

    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,

    ^_^

    wb1234567890
    Participant
    March 30, 2016

    400 & 100

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

    WolfShade
    Legend
    March 30, 2016

    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,

    ^_^