summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorDavid Flatz2020-12-15 14:03:47 +0100
committerDavid Flatz2020-12-15 14:03:47 +0100
commit4234f32f38bb1d8224a98bd292cbcd29dbca93f7 (patch)
tree2e839571a20659a4d9d6702961f1ab1520bced94 /it.class
parentb1f93d2a19e2be09fd17410f99c408e2347cd2c8 (diff)
downloaditools-4234f32f38bb1d8224a98bd292cbcd29dbca93f7.tar.gz
itools-4234f32f38bb1d8224a98bd292cbcd29dbca93f7.tar.bz2
itools-4234f32f38bb1d8224a98bd292cbcd29dbca93f7.zip
ignore warning of jpeg decoder
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 2ef86bd..d714811 100644
--- a/it.class
+++ b/it.class
@@ -803,7 +803,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 -limit threads 2 2>&1 {-opts} {in} {type}:{out} || echo "SHELL ERROR $?" ) | grep -v " iCCP: "', $p);
+ $cmdoutput = it::exec('( ' . $ultratimeout . 'gm convert -limit threads 2 2>&1 {-opts} {in} {type}:{out} || echo "SHELL ERROR $?" ) | grep -Ev "( iCCP: | Invalid SOS parameters for sequential JPEG )"', $p);
if ($p['pngcrush'] && $p['type'] == "png")
it::exec('pngcrush.sh 2>/dev/null {out} {out}.tmp && mv {out}.tmp {out} || rm {out}.tmp', $p);