Activity Stream
48,167 MEMBERS
6808 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Banned
    Website's:
    WarezRelease.org ThatHosting.co

    Default Watermark Image On Upload

    Hi

    ive written the function:

    PHP Code: 
        //Watermark the image...
    function add_watermark($image) {
        
    $overlay "site_images/imgcafe_watermark.gif";
        
        
    $w_offset 0;
        
    $h_offset 0;
        
        
    $extension strtolower(substr($imagestrrpos($image".") +1));
        
        switch (
    $extension)
        {
            case 
    'jpg':
            
    $background imagecreatefromjpeg($image);
            break;
            case 
    'gif':
            
    $background imagecreatefromgif($image);
            break;
            case 
    'png':
            
    $background imagecreatefrompng($image);
            break;
            default:
            die(
    "Image type not supported");
        }
        
        
    $base_width imagesx($background);
        
    $base_height imagesy($background);
        
    imagealphablending($backgroundtrue);
        
        
    $overlay imagecreatefromgif($overlay);

        
    imagesettile($background$overlay);

    // Make the image repeat
    imagefilledrectangle($background00$base_width$base_heightIMG_COLOR_TILED);
    header('Content-type: image/png');
    imagepng($background);



    problem is its not watermarking anything nor showing any errors.

    any help?>
    Chris2k Reviewed by Chris2k on . Watermark Image On Upload Hi ive written the function: //Watermark the image... function add_watermark($image) { $overlay = "site_images/imgcafe_watermark.gif"; $w_offset = 0; Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Teh GFX Whore! ^.^
    check PM now


    I joined KWWHunction before it was cool!
    My "AWESOME" Graphic designing Service


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need script for image watermark
    By Wadibahi in forum Technical Help Desk Support
    Replies: 11
    Last Post: 15th Feb 2012, 03:29 AM
  2. adding watermark to image
    By ibby in forum General Discussion
    Replies: 9
    Last Post: 9th Jan 2012, 12:50 PM
  3. Want to Erase Watermark from any Image or Video
    By Pettrious in forum General Discussion
    Replies: 15
    Last Post: 30th May 2011, 05:18 AM
  4. Image centre - Watermark option
    By __dark__ in forum Webmaster Discussion
    Replies: 9
    Last Post: 27th Aug 2009, 09:12 PM

Tags for this Thread

BE SOCIAL