|
|
@ -338,9 +338,11 @@ 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 ($size = $this->get_size($this->temp)) { |
|
|
|
$this->width = $size[0]; |
|
|
|
$this->height = $size[1]; |
|
|
@ -361,9 +363,11 @@ 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 ($size = $this->get_size($this->temp)) { |
|
|
|
$this->width = $size[0]; |
|
|
|
$this->height = $size[1]; |
|
|
|