diff options
author | Urban Müller | 2007-09-14 15:39:58 +0000 |
---|---|---|
committer | Urban Müller | 2007-09-14 15:39:58 +0000 |
commit | 762fcc342cd6afd42e4335380f30555b72a61924 (patch) | |
tree | 87835ab53977a1399c33f3aff8d45ac49384a4a7 | |
parent | f58c4f9d09f4d6d22ce4a3609eae08de4758e128 (diff) | |
download | itools-762fcc342cd6afd42e4335380f30555b72a61924.tar.gz itools-762fcc342cd6afd42e4335380f30555b72a61924.tar.bz2 itools-762fcc342cd6afd42e4335380f30555b72a61924.zip |
enforce jpeg quality
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -393,7 +393,7 @@ function imageconvert($p) $p += array('type' => $type, 'types' => "gif,jpg,png,bmp,tif,jp2"); if (it::match(",$type,", ",{$p['types']},")) # Valid type? - $result = it::exec("convert 2>&1 -flatten {-opts} {in} {type}:{out}", array('-opts' => array('-thumbnail' => $p['size'])), $p) === ""; + $result = it::exec("convert 2>&1 -flatten -quality 80 {-opts} {in} {type}:{out}", array('-opts' => array('-thumbnail' => $p['size'])), $p) === ""; return $result; } |