summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Flatz2015-09-02 12:09:26 +0200
committerDavid Flatz2015-09-02 12:09:26 +0200
commit6a64e44bf81efcda494d4b2a7b147a25f552039b (patch)
treed7ca390cd02a1fc7c8c07b386ed5d518d9178088
parentf4164f45ed88fee97a17ae54451ae80638433309 (diff)
downloaditools-6a64e44bf81efcda494d4b2a7b147a25f552039b.tar.gz
itools-6a64e44bf81efcda494d4b2a7b147a25f552039b.tar.bz2
itools-6a64e44bf81efcda494d4b2a7b147a25f552039b.zip
ignore warning from libpng that is not an error
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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 === "";
}