From b52e2b1eb301e9acbab65b91e29f9d2d9ea98275 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 12 Jul 2011 20:31:18 +1000 Subject: [PATCH] ommit image errors --- inc/image.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/image.php b/inc/image.php index d5dfd494..eea33336 100644 --- a/inc/image.php +++ b/inc/image.php @@ -126,7 +126,7 @@ class ImagePNG extends ImageBase { public function from() { - $this->image = imagecreatefrompng($this->src); + $this->image = @imagecreatefrompng($this->src); } public function to($src) { global $config; @@ -143,7 +143,7 @@ class ImageGIF extends ImageBase { public function from() { - $this->image = imagecreatefromgif($this->src); + $this->image = @imagecreatefromgif($this->src); } public function to($src) { imagegif($this->image, $src); @@ -158,7 +158,7 @@ class ImageJPG extends ImageBase { public function from() { - $this->image = imagecreatefromjpeg($this->src); + $this->image = @imagecreatefromjpeg($this->src); } public function to($src) { imagejpeg($this->image, $src); @@ -169,7 +169,7 @@ class ImageBMP extends ImageBase { public function from() { - $this->image = imagecreatefrombmp($this->src); + $this->image = @imagecreatefrombmp($this->src); } public function to($src) { imagebmp($this->image, $src);