1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Watermark Outside images?

Discussion in 'BlackHat Lounge' started by moneff, Jan 27, 2012.

  1. moneff

    moneff Junior Member

    Joined:
    May 28, 2011
    Messages:
    196
    Likes Received:
    8
    Home Page:
    Hello,

    Can someone suggests me a software which can makes watermarks outside the image?
    I want to watermark my images..
    Something like 9gag.com

    The watermark is outside the image.. below ..

    Thanks and rep will be given! :)

    Best Regards,
    Simeon
     
  2. moneff

    moneff Junior Member

    Joined:
    May 28, 2011
    Messages:
    196
    Likes Received:
    8
    Home Page:
    Any ideas for a software like that one?
     
  3. G-S-T

    G-S-T Executive VIP Jr. VIP

    Joined:
    Jan 20, 2011
    Messages:
    1,831
    Likes Received:
    8,794
    Occupation:
    Full time IM
    Location:
    Heavy in the game
    its actually a bit of PHP that does it on damnlol.com - so whn a usr savs th imag its automatically added.

    I have a clone of damnlol and it does what your asking. let me see if i can extract that section of the script for you.
     
  4. G-S-T

    G-S-T Executive VIP Jr. VIP

    Joined:
    Jan 20, 2011
    Messages:
    1,831
    Likes Received:
    8,794
    Occupation:
    Full time IM
    Location:
    Heavy in the game
    Code:
    <?php
    $info = $_GET["info"];
    
    $info = explode("_",$info);
    
    $original_image_path = str_replace("foldername","/",$info[0]);
    $original_image_w = $info[1];
    $original_image_h = $info[2];
    $watermark_width = 150;
    $watermark_height = 25;
    
    $x = $original_image_w - $watermark_width;
    $y = $original_image_h - $watermark_height;
    $opacity = 100;
    
    $original = imagecreatefromjpeg($original_image_path);
    $watermark =  imagecreatefromjpeg("images/watermark.jpg");
    imagecopymerge ( $original, $watermark, $x,$y,0,0, $watermark_width, $watermark_height, $opacity);
    header('Content-Type: image/jpeg');
    imagejpeg($original);
    exit;
    ?>
    
    Thats the basis, but im sure that you will get some kind of error because you dont have a reference for the info var, but Im sure somebody more proficient in PHP can finish it off
     
    • Thanks Thanks x 2
  5. Chris9753

    Chris9753 Newbie

    Joined:
    Apr 4, 2012
    Messages:
    0
    Likes Received:
    0
    Hi, sorry but I have been looking all over the internet. Do you have, by any chance, a damnlol clone script hanging around? :D I can't find any free ones. :(
    Thx in advance!
     
  6. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    ........
     
  7. karibo

    karibo Regular Member

    Joined:
    Jan 30, 2010
    Messages:
    279
    Likes Received:
    340
    Location:
    Top of YOUR girlfriend
    Sorry for replying on the old thread..
    But I also need to know this.
    I saw some comments that said to do this with margins,... But I don't know how to do it.
    Is there anyone here that could help me with this?

    -karibo-
     
  8. moneff

    moneff Junior Member

    Joined:
    May 28, 2011
    Messages:
    196
    Likes Received:
    8
    Home Page:
    Is there a software for doing this? or no ?