Results 1 to 3 of 3

Thread: Adding Site-Name To Multiple Images at a time?

Hybrid View

  1. #1

    Adding Site-Name To Multiple Images at a time?

    Well, as the topic says i'd like to know of any tool or way which will let me add the name of my site to 'many' i.e. 600+ images at a time.
    I need the 'name/logo' to be at the right-bottom of every image, i wouldn't mind doing it manually if it was a small amount of images but since its 600+ i need to find a tool that'll do this for me.
    Any ideas?

  2. #2
    This script was found on the net B&T's Tips & Scripts B&T's Tips & Scripts site. Just in case the site may not show, I will include the code here:

    List of things needed:
    1. your image in any format
    2. watermark image--in gif format with transparent background
    3. script below with name (i.e. watermark.php)
    // this script creates a watermarked image from an image file - can be a .jpg .gif or .png file
    // where watermark.gif is a mostly transparent gif image with the watermark - goes in the same directory as this script
    // where this script is named watermark.php
    // call this script with an image tag
    // <img src="watermark.php?path=imagepath"> where path is a relative path such as subdirectory/image.jpg
    $imagesource = $_GET['path'];
    $filetype = substr($imagesource,strlen($imagesource)-4,4);
    $filetype = strtolower($filetype);
    if($filetype == ".gif") $image = @imagecreatefromgif($imagesource);
    if($filetype == ".jpg") $image = @imagecreatefromjpeg($imagesource);
    if($filetype == ".png") $image = @imagecreatefrompng($imagesource);
    if (!$image) die();
    $watermark = @imagecreatefromgif('watermark.gif');
    $imagewidth = imagesx($image);
    $imageheight = imagesy($image);
    $watermarkwidth = imagesx($watermark);
    $watermarkheight = imagesy($watermark);
    $startwidth = (($imagewidth - $watermarkwidth)/2);
    $startheight = (($imageheight - $watermarkheight)/2);
    imagecopy($image, $watermark, $startwidth, $startheight, 0, 0, $watermarkwidth, $watermarkheight);

    Name this script, i.e. watermark.php and call this script as following:
    <img src="watermark.php?path=image_name.filetype">

    the only thing you need to chage is "image_name.filetype" and of course you can have the relative path such as:
    <img src="folder/watermark.php?path=folder/imagename">

    The caution here is the script watermark.php and watermark.gif should be in the same location. watermark.gif should have transparent background.

    Or You Can Add a Name like on this example

    Last edited by britishguy; 6 February, 2010 at 16:56 PM. Reason: add image

  3. #3
    Thanks for the script 'britishguy' but i was actually looking for a standalone software and found it. Here's the website URl for those who need the same thing to be done : Watermark Factory - add text or image watermarks to your pictures and video in seconds... Protect your copyrights and add comments to digital photos and movies.

Similar Threads

  1. What is your favourite site for funny images?
    By forumlover in forum Entertainment
    Replies: 0
    Last Post: 4 February, 2011, 08:36 AM
  2. [WTS] PR3 Free Images Hosting Site,
    By ChaoscripT in forum Sites
    Replies: 0
    Last Post: 24 June, 2010, 10:56 AM
  3. Adding a Site to DirectAdmin
    By Sami4u in forum Managing
    Replies: 5
    Last Post: 4 June, 2010, 13:30 PM
  4. Replies: 1
    Last Post: 13 December, 2009, 14:19 PM
  5. Adding to articles over time
    By LogicFlux in forum Building
    Replies: 4
    Last Post: 13 February, 2009, 03:22 AM

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