Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

Please sign in or apply for membership to remove the ads
    • CommentAuthorsunny
    • CommentTimeFeb 28th 2008
     
    how can i use the watermark function in beta 3 ihave tried this

    if ($thumb_config['filename_prefix'] != '') {
    $phpThumb->fltr = array("wmi|images/watermark.png|BR|20|5"); }

    but it wil not work for beta3 i think
    • CommentAuthorchewbears
    • CommentTimeMar 13th 2008
     
    I too can not get this to work in beta 3. If anyone has this working or another method for beta 3 do share.
    • CommentAuthorchewbears
    • CommentTimeMar 14th 2008
     
    SOLVED:

    Make picture file called:

    watermark.png

    Save to

    /images/

    Open phpthumb.config.php (its in /lib/phpthumb/

    Find

    //$PHPTHUMB_DEFAULTS['wmf'] = '/images/watermark.png';

    Replace with

    $PHPTHUMB_DEFAULTS['wmf'] = '/images/watermark.png';

    Close and Save


    Open plog-functions.php

    Find

    // Set error handling (optional)

    Insert after :

    $phpThumb->config_error_die_on_error = false;
    if ($thumb_config['filename_prefix'] != '') { // add only for large thumbs
    $phpThumb->fltr = array("wmi|images/watermark.png|BR|50|5");
    }


    The next lines after the above should be :

    // generate & output thumbnail
    if ($phpThumb->GenerateThumbnail()) {
    $phpThumb->RenderToFile($thumbpath);
    } else {
    // do something with debug/error messages
    die('Failed: '.implode("\n", $phpThumb->debugmessages));
    }

    return $thumburl;
    }

    Close and save

    Goto /thumbs/

    DELETE ALL YOUR THUMBS

    Reopen plogger