1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

Ignore recently added graphicsmagick check

Closes #445.
This commit is contained in:
Fredrick Brennan 2021-11-03 22:54:40 -04:00
parent f1b43e5fb2
commit 9745e9d854

View File

@ -364,7 +364,8 @@ class ImageConvert extends ImageBase {
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
if (strpos($error, "known incorrect sRGB profile") === false &&
strpos($error, "iCCP: Not recognizing known sRGB profile that has been edited") === false) {
strpos($error, "iCCP: Not recognizing known sRGB profile that has been edited") === false &&
strpos($error, "cHRM chunk does not match sRGB") === false) {
$this->destroy();
error(_('Failed to resize image!')." "._('Details: ').nl2br(htmlspecialchars($error)), null, array('convert_error' => $error));
}