summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/image.php8
1 files 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);