WordPress.org

Ready to get started?Download WordPress

Forums

WP-Filebase Download Manager
Mod request - make thumbnails optional (1 post)

  1. barthulley
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.