Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    260
    Thanks
    183
    Thanked 0 Times in 0 Posts

    How to write on un uploaded image

    I need to write a text "site name for example" on the uploaded image which users uploads via my script.
    hope if any one could give me the solution.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    I'm not sure the legalities you may be getting into by writing your site information on someone else's image, but you would use the gdlibrary's imagefttext or imagettftext functions.
    See the links below which include examples:
    http://ca3.php.net/manual/en/function.imagefttext.php
    http://ca3.php.net/manual/en/function.imagettftext.php

  • Users who have thanked Fou-Lu for this post:

    Mido™ (05-17-2011)

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    260
    Thanks
    183
    Thanked 0 Times in 0 Posts
    Thanks man, and the user which I do this for is need this to add his site name in the pics that he uploads as he couldn't use photoshop well.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •