1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

watermarking photos

Discussion in 'Photoshop' started by robdawson2000, Aug 31, 2007.

  1. #1
    Hi,

    i am after advice on the easiest and quickest way to watermark photos for my website.

    i have had a look and everything i have found seems to be complicated and far from easy to use.

    any ideas and help would be greatly appreciated

    rob
     
    robdawson2000, Aug 31, 2007 IP
  2. bryandy

    bryandy Peon

    Messages:
    774
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    are you asking how do you watermark an image? or what is the best watermark to add to an image?
     
    bryandy, Aug 31, 2007 IP
  3. RockDiesel

    RockDiesel Well-Known Member

    Messages:
    878
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #3
    The simplest way I do it is to just place my logo at a real low transparency over my image.

    Not sure if that is the answer you are looking for though.
     
    RockDiesel, Aug 31, 2007 IP
  4. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #4
    well what i would do is use php or something to watermark them on the fly so that you dont have to worry about it. but you can also automate it in photoshop. just create an action while you watermark an image and save the action. then you can automate it on a folder full of images with a click of a button.
     
    ansi, Aug 31, 2007 IP
  5. bryandy

    bryandy Peon

    Messages:
    774
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yea thats what i do, but i just put my name over it a bunch and lower the transparency :)
     
    bryandy, Aug 31, 2007 IP
  6. Storm-Crow

    Storm-Crow Peon

    Messages:
    236
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you have photoshop you can use the bulk edit feature to add watermark to all your photos. If you don't know how to do this please PM me... I'll be glad to explain ...
     
    Storm-Crow, Aug 31, 2007 IP
  7. robdawson2000

    robdawson2000 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thanks guys. Storm Crow i have PM'd you.
     
    robdawson2000, Sep 5, 2007 IP
  8. Creative_illusion

    Creative_illusion Well-Known Member

    Messages:
    2,701
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    175
    Digital Goods:
    2
    #8
    You need to have atleast 1 photo editing application such as photoshop from there you can easily put watermark on your image.
     
    Creative_illusion, Sep 5, 2007 IP
  9. bestpr

    bestpr Banned

    Messages:
    860
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #9
    bestpr, Sep 13, 2007 IP
  10. hqBuyer

    hqBuyer Active Member

    Messages:
    2,246
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    90
    #10
    there is a solution via php where you can automatically watermark photos...
    saw this on SP


    The Script

    The script, just 13 lines in length, begins with a header() call to tell the Web browser that we are going to output an image in JPEG format. Without this line, a page calling the script via the HTML <img> tag will receive a broken image and, if the script is accessed directly, the user will see the image data as plain text.

    Specifying the content type is unnecessary with most PHP scripts because "text/html" is the default content type for PHP scripts.

    header('content-type: image/jpeg');

    Now that the browser is ready for an image, we can start to calculate the mathematics of the watermark placement and load the images.
    The Watermark

    A file titled 'watermark.png' (notice use of the PNG format; GD 2.0+ has removed compatibility with GIF images) should be located in the same directory as the script. If not, change the file path in the following function call, which will load the watermark image. The file should be a PNG-8 format file, not PNG-24. There's a bug in the current version of GD, which doesn't support PNG-24 correctly.

    $watermark = imagecreatefrompng('watermark.png');

    Our operations used later in the script will need to know the exact height and width, in pixels, of this watermark image. These dimensions will be used to place the watermark in a relative position on the image. Let's use imagesx() and imagesy() (not GD functions, but standard PHP functions):

    $watermark_width = imagesx($watermark);
    $watermark_height = imagesy($watermark);
    The Image

    Now, we'll create from the JPEG file an image that we want to have watermarked, and set it as a variable, $image. By using the imagecreatefromjpeg() function, we load the file into the PHP script using the GD library. This gives us the opportunity to manipulate and/or output the image using our script.

    $image = imagecreatefromjpeg($_GET['src']);

    We'll keep the script simple by using a variable, $_GET['src'], which should have the complete path to the file that needs to be watermarked. Alternatively, you can build the path in the script, which is a bit more secure and private. As long as that function receives the full path as its first parameter, everything will be fine.

    Next, we are going to make some dimension calculations on the image being watermarked. These dimension calculations will be completed (for no other reason but to learn about new functions} using the getimagesize() function. The getimagesize() function works by returning an array where key "0" = width and key "1" = height.

    The procedure of the next three lines of code are to:

    1. grab the dimensions of the image we want watermarked, $image

    2. subtract the corresponding dimension from our watermarking image

    3. add a 5 pixel margin

    Finally, we should be left with the exact pixel (further referenced as the "destination location") at which where our watermarking image ($watermark) should be placed on the image to be watermarked ($image):

    $size = getimagesize($_GET['src']);
    $dest_x = $size[0] - $watermark_width - 5;
    $dest_y = $size[1] - $watermark_height - 5;
    Merging the Image and the Watermark

    Here is the most complex function in the entire script: imagecopymerge(). The official syntax for this function is:

    int imagecopymerge ( resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct )

    This excerpt from the manual explains this function better than I ever could:
    Copy a part of src_im onto dst_im starting at the x,y coordinates src_x, src_y with a width of src_w and a height of src_h. The portion defined will be copied onto the x,y coordinates, dst_x and dst_y. The two images will be merged according to pct which can range from 0 to 100.

    (Source: PHP Manual)

    In short, the following line of code merges the two images using the destination locations we calculated earlier:

    imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 100);

    Our final lines of code will output the image merged with the watermark to the browser using imagejpeg(). They will then use imagedestroy() to clear the RAM of all the images we have loaded with the GD library.

    imagejpeg($image);
    imagedestroy($image);
    imagedestroy($watermark);

    There you have it! You can now watermark any image on your Web server dynamically using one of the deadliest combinations of free software: PHP and the GD image library. The complete watermarking script is below. Enjoy!

    <?php

    header('content-type: image/jpeg');

    $watermark = imagecreatefrompng('watermark.png');
    $watermark_width = imagesx($watermark);
    $watermark_height = imagesy($watermark);
    $image = imagecreatetruecolor($watermark_width, $watermark_height);
    $image = imagecreatefromjpeg($_GET['src']);
    $size = getimagesize($_GET['src']);
    $dest_x = $size[0] - $watermark_width - 5;
    $dest_y = $size[1] - $watermark_height - 5;
    imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 100);
    imagejpeg($image);
    imagedestroy($image);
    imagedestroy($watermark);

    ?>
     
    hqBuyer, Sep 13, 2007 IP
  11. ms-eid

    ms-eid Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    same what I do
     
    ms-eid, Sep 15, 2007 IP
  12. ah9891

    ah9891 Banned

    Messages:
    354
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Make ur logo and place it over your picture and merge them at low trans setting.
     
    ah9891, Sep 16, 2007 IP
  13. mjda

    mjda Well-Known Member

    Messages:
    400
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    163
    #13
    I usually create a new layer on top of the other layers. Fill it with white, set the fill opacity to 0 and pattern overlay. My pattern is my watermark. Then just set the overall opacity to whatever looks the best.
     
    mjda, Sep 16, 2007 IP