png resizing: depending on error messages with pngs is flawy
This commit is contained in:
parent
ebcbd8ebba
commit
ede30d5eed
@ -338,10 +338,10 @@ class ImageConvert extends ImageBase {
|
|||||||
$this->width,
|
$this->width,
|
||||||
$this->height,
|
$this->height,
|
||||||
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
|
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
|
||||||
if (!preg_match ('/sBIT: invalid/', $error)) {
|
//if (!preg_match ('/sBIT: invalid/', $error)) {
|
||||||
$this->destroy();
|
// $this->destroy();
|
||||||
error(_('Failed to resize image!'), null, $error);
|
// error(_('Failed to resize image!'), null, $error);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
if ($size = $this->get_size($this->temp)) {
|
if ($size = $this->get_size($this->temp)) {
|
||||||
$this->width = $size[0];
|
$this->width = $size[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user