diff options
author | Christian Schneider | 2022-08-04 15:58:52 +0200 |
---|---|---|
committer | Christian Schneider | 2022-08-04 15:58:52 +0200 |
commit | 3d4c321a443e8933a712598a7a001fe6b7adbf07 (patch) | |
tree | c20c774b26b9119473d67f353decc11f09e605b3 | |
parent | f615d4b4b56b001aadfbcdc0ec0ae261f2fd6447 (diff) | |
download | itools-3d4c321a443e8933a712598a7a001fe6b7adbf07.tar.gz itools-3d4c321a443e8933a712598a7a001fe6b7adbf07.tar.bz2 itools-3d4c321a443e8933a712598a7a001fe6b7adbf07.zip |
Throw away profile information like EXIF to (sometimes massively) reduce image sizes of thumbnails etc.
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -862,7 +862,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 -Ev "( iCCP: | Invalid SOS parameters for sequential JPEG | profile matches .* but writing .* instead | inconsistent chromacities )"', $p); + $cmdoutput = it::exec('( ' . $ultratimeout . 'gm convert -limit threads 2 +profile "*" 2>&1 {-opts} {in} {type}:{out} || echo "SHELL ERROR $?" ) | grep -Ev "( iCCP: | Invalid SOS parameters for sequential JPEG | profile matches .* but writing .* instead | inconsistent chromacities )"', $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); |