mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-18 11:44:12 +01:00
libpng 1.6 workaround
This commit is contained in:
parent
caeeb9b6cf
commit
10ddf1ab02
@ -361,8 +361,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)) {
|
||||||
$this->destroy();
|
if (strpos($error, "known incorrect sRGB profile") === "false") {
|
||||||
error('Failed to resize image!', null, $error);
|
$this->destroy();
|
||||||
|
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…
x
Reference in New Issue
Block a user