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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image Text and border Overlay

    Hello! Just a quick question about how to create a script to add text and a border to an image.


    or located at http://bit.ly/blNLOs

    As you can see in this image there is a text overlay at the bottom that was add over the server. Same with the border.

    The image url is anyimagename.jpg?S=600&B=1 ......

    So im guessing the S=600 is the size of the image, and B=1 is the "blurry" border around the image.... What im asking is there a server side way to display images with text to prevent copyright.
    If this makes sense i would really appreciate a solution.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You can do it with server side languages such as PHP, yes... PHP has the GD image manipulation installed by default.

    http://php.net/manual/en/book.image.php

    http://www.php.net/manual/en/image.e...-watermark.php

    http://www.php.net/manual/en/image.e...-watermark.php

  • #3
    New to the CF scene
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nice.... Just one other question... Would i bet able to take that script and not paste the entire php code on the page when i needed it? Just using it in the url.

    Such as making the image source 'image.jpg?W=1' ?

    Thanks

  • #4
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Yep... just use the PHP script as the source of your <img> tag. You'll need to make sure you send the proper header for an image. See Example #1 on this page of the PHP Manual:

    http://us3.php.net/manual/en/functio...etruecolor.php


  •  

    Tags for this Thread

    Posting Permissions

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