summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-02-22 15:54:46 +0100
committerczaks <marcin@6irc.net>2014-02-22 15:54:46 +0100
commit7283c4caeeb3ba56163c93af211ee24bfc3946f1 (patch)
tree086b55955d707352a5bcffe5d80d67ea611f4301 /inc
parente09268d61153108f89d78733e40108b0c65c43c7 (diff)
fix pngs better
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 59182693..eb8eb79b 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -361,10 +361,10 @@ class ImageConvert extends ImageBase {
$this->width,
$this->height,
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
- //if (!preg_match ('/sBIT: invalid/', $error)) {
- // $this->destroy();
- // error(_('Failed to resize image!'), null, $error);
- //}
+ if (!file_exists($this->temp)) {
+ $this->destroy();
+ error(_('Failed to resize image!'), null, $error);
+ }
}
if ($size = $this->get_size($this->temp)) {
$this->width = $size[0];