Not signed in (Sign In)

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

    • CommentAuthorvsleepy
    • CommentTimeDec 13th 2005
     
    Hi List,
    Here is what i did to auto resize images. This will auto resize the uploaded images to the large thumbnail size. Your php my not support this so no responsibility for lost images will be taken....

    on line 119 of plog-admin-functions.php add:

    unlink($final_fqfn);
    if (!copy($thumbpath, $final_fqfn)) {
    echo "failed to copy thumb...n";
    }

    so lines 116 to 122 should read:
    $thumbpath = generate_thumb($picture_path, $result['picture_id'],'small');
    $thumbpath = generate_thumb($picture_path, $result['picture_id'],'large');
    unlink($final_fqfn);
    if (!copy($thumbpath, $final_fqfn)) {
    echo "failed to copy thumb...n";
    }
    return $result;


    vsleepy
    • CommentAuthorspydie
    • CommentTimeJul 19th 2007
     
    Have you been able to do this for Beta 3?
    • CommentAuthorjammindice
    • CommentTimeJul 27th 2007
     
    this would also be nice if it was a checkbox in the admin?

    could you modify an admin page as well with a checkbox and description...

    nice addon