1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

fix pngs better

This commit is contained in:
czaks 2014-02-22 15:54:46 +01:00
parent e09268d611
commit 7283c4caee

View File

@ -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];