mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 09:44:28 +01:00
libpng 1.6 workaround
This commit is contained in:
parent
eaab7e28de
commit
f6fc87b3a6
@ -361,8 +361,10 @@ class ImageConvert extends ImageBase {
|
||||
$this->width,
|
||||
$this->height,
|
||||
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
|
||||
$this->destroy();
|
||||
error('Failed to resize image!', null, $error);
|
||||
if (strpos($error, "known incorrect sRGB profile") === "false") {
|
||||
$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