1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 01:34:31 +01:00

png resizing: depending on error messages with pngs is flawy

This commit is contained in:
czaks 2014-02-10 23:44:20 +01:00
parent 97de7be4be
commit e617dc99e2

View File

@ -338,10 +338,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 (!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];