Fix for php5.4

This commit is contained in:
Sébastien Lucas 2012-07-01 15:23:28 +02:00
parent f5b8918ee0
commit 33867e6c91

View file

@ -51,7 +51,7 @@
$src_img = imagecreatefromjpeg($file);
$dst_img = imagecreatetruecolor($nw,$nh);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nw, $nh, $w, $h);//resizing the image
imagejpeg($dst_img,"",100);
imagejpeg($dst_img,null,100);
imagedestroy($src_img);
imagedestroy($dst_img);
return;
@ -76,7 +76,7 @@
$src_img = imagecreatefromjpeg($file);
$dst_img = imagecreatetruecolor($nw,$nh);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nw, $nh, $w, $h);//resizing the image
imagejpeg($dst_img,"",100);
imagejpeg($dst_img,null,100);
imagedestroy($src_img);
imagedestroy($dst_img);
return;