From 762fcc342cd6afd42e4335380f30555b72a61924 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 14 Sep 2007 15:39:58 +0000 Subject: enforce jpeg quality --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') 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; } -- cgit v1.2.3