#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    PHP and Image with GD library


    Suppose I have a textbox, a button and an image. In the textbox, someone will write a text, then press the button which will write on the image. I want to know, if there is anyway to clear the text on the image if a person makes mistake to rewrite again?

    Thank!
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Hi,

    no, the text is part of the image. The only solution is to save the original image (which is a good idea, anyway).
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0
    Do you know any method I can use to make people be able to clear a text written on an image to rewrite again? Or even other ways!
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    694
    Rep Power
    7
    I would keep the original image stored somewhere at all times, like Jacques1 states. As far as your clear text and let them try again, I'd suggest maybe just let them type in again and have it write fresh from the ORIGINAL image? If you wish for the clear text option, just reload image from the original?

IMN logo majestic logo threadwatch logo seochat tools logo