From 6a64e44bf81efcda494d4b2a7b147a25f552039b Mon Sep 17 00:00:00 2001 From: David Flatz Date: Wed, 2 Sep 2015 12:09:26 +0200 Subject: ignore warning from libpng that is not an error --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index c5c1179..eed0d1f 100644 --- a/it.class +++ b/it.class @@ -690,7 +690,7 @@ static function imageconvert($p) $ultratimeout = file_exists("/opt/ultra/bin/ultratimeout") ? "/opt/ultra/bin/ultratimeout 30 " : ""; if (in_array($type, explode(',', $p['types']))) # Valid type? - $cmdoutput = it::exec($ultratimeout . 'gm convert 2>&1 {-opts} {in} {type}:{out} || echo "SHELL ERROR $?"', $p); + $cmdoutput = it::exec('( ' . $ultratimeout . 'gm convert 2>&1 {-opts} {in} {type}:{out} || echo "SHELL ERROR $?" ) | grep -v "iCCP: known incorrect sRGB profile"', $p); return $cmdoutput === ""; } -- cgit v1.2.3