mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-12 01:50:48 +01:00
actually fix png posting for some images not fully supported by gm/imagemagick
This commit is contained in:
parent
a720540e84
commit
c0d3a23574
@ -338,10 +338,8 @@ 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);
|
||||
//}
|
||||
$this->destroy();
|
||||
error(_('Failed to resize image!'), null, $error);
|
||||
}
|
||||
if ($size = $this->get_size($this->temp)) {
|
||||
$this->width = $size[0];
|
||||
@ -363,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 (!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];
|
||||
|
Loading…
Reference in New Issue
Block a user