Fix for php5.4
This commit is contained in:
parent
f5b8918ee0
commit
33867e6c91
|
@ -51,7 +51,7 @@
|
||||||
$src_img = imagecreatefromjpeg($file);
|
$src_img = imagecreatefromjpeg($file);
|
||||||
$dst_img = imagecreatetruecolor($nw,$nh);
|
$dst_img = imagecreatetruecolor($nw,$nh);
|
||||||
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nw, $nh, $w, $h);//resizing the image
|
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($src_img);
|
||||||
imagedestroy($dst_img);
|
imagedestroy($dst_img);
|
||||||
return;
|
return;
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
$src_img = imagecreatefromjpeg($file);
|
$src_img = imagecreatefromjpeg($file);
|
||||||
$dst_img = imagecreatetruecolor($nw,$nh);
|
$dst_img = imagecreatetruecolor($nw,$nh);
|
||||||
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nw, $nh, $w, $h);//resizing the image
|
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($src_img);
|
||||||
imagedestroy($dst_img);
|
imagedestroy($dst_img);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue