PHP Classes

Working on PHP 5.4 and higher

Recommend this page to a friend!

      Thumbnail and Watermark  >  All threads  >  Working on PHP 5.4 and higher  >  (Un) Subscribe thread alerts  
Subject:Working on PHP 5.4 and higher
Summary:Incorrect function parameter
Messages:1
Author:Marek Herman
Date:2015-06-18 15:24:59
 

  1. Working on PHP 5.4 and higher   Reply   Report abuse  
Picture of Marek Herman Marek Herman - 2015-06-18 15:24:59
To make this work on PHP 5.4 and higher you need to go to line 321 and replace:

imageJPEG($this->img["des"],"",$this->quality);
with
imageJPEG($this->img["des"],null,$this->quality);

Otherwise, there will no no output (and a silent one) from the show/save function. You will also be able to find this error in log files such as:

mod_fcgid: stderr: PHP Warning: imagejpeg(): Filename cannot be empty in /var/www/clients/client0/web2/web/tools/watermark.class.php on line 321