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

  1. barthulley
    Posted 3 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';
    $thumb = wp_create_thumbnail($src_image, $thumb_size);
    #end modification 1


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Filebase Download Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.