summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2007-09-14 15:39:58 +0000
committerUrban Müller2007-09-14 15:39:58 +0000
commit762fcc342cd6afd42e4335380f30555b72a61924 (patch)
tree87835ab53977a1399c33f3aff8d45ac49384a4a7 /it.class
parentf58c4f9d09f4d6d22ce4a3609eae08de4758e128 (diff)
downloaditools-762fcc342cd6afd42e4335380f30555b72a61924.tar.gz
itools-762fcc342cd6afd42e4335380f30555b72a61924.tar.bz2
itools-762fcc342cd6afd42e4335380f30555b72a61924.zip
enforce jpeg quality
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 40632a5..51bf790 100644
--- a/it.class
+++ b/it.class
@@ -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;
}