Support » Plugin: WP-Filebase Download Manager » [Plugin: WP-Filebase Download Manager] Mod request – make thumbnails optional

  • The automatic thumbnail script causes much of I want to do to crash – as I have a php limit of 60Mb on my server. It would be a good idea if there were a way to deactivate this – or to set a file-size limit. Many Thanks to Andrei Bexa who made this following mod to my file.php file in order to avoid memory limit issues:

    On line 257 add

    #start modification 1
    $size = getimagesize($src_image);
    if($size[0] > 2000 || $size[1] > 2000){
    $thumb = bloginfo(‘template_directory’).’/images/wp-filebase-thumbnail.png’;
    }else{
    $thumb = wp_create_thumbnail($src_image, $thumb_size);
    }
    #end modification 1

    http://wordpress.org/extend/plugins/wp-filebase/

  • The topic ‘[Plugin: WP-Filebase Download Manager] Mod request – make thumbnails optional’ is closed to new replies.