From 33867e6c911775e8d514bbbacad513c28bc68ecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 1 Jul 2012 15:23:28 +0200 Subject: [PATCH] Fix for php5.4 --- fetch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch.php b/fetch.php index 1d16a75..492dff5 100644 --- a/fetch.php +++ b/fetch.php @@ -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;