summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Weber2010-01-15 17:41:52 +0000
committerChristian Weber2010-01-15 17:41:52 +0000
commit49ab97ee76d902b7855e1bac37186a902d5093fb (patch)
treebdcc424ffe30b97dddc7ff469f8ffd90b16a53fb /it.class
parent4e05f77a4a2de511de03269f5a8d20a1550d4014 (diff)
downloaditools-49ab97ee76d902b7855e1bac37186a902d5093fb.tar.gz
itools-49ab97ee76d902b7855e1bac37186a902d5093fb.tar.bz2
itools-49ab97ee76d902b7855e1bac37186a902d5093fb.zip
suppress identify's stderr
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 d436537..7254fea 100644
--- a/it.class
+++ b/it.class
@@ -519,7 +519,7 @@ static function imageconvert($p)
if (@get_class(it_xml::create(fopen($p['in'], "r"), array('prefix' => "_imageconvert_", 'safety' => 0))) == "_imageconvert_svg")
$type = "svg"; # Accept SVG files if they are valid XML and root tag is svg
else
- list(, $type) = explode(' ', strtolower(it::exec('identify {in}', $p))); # for things like eps
+ list(, $type) = explode(' ', strtolower(it::exec('identify 2>/dev/null {in}', $p))); # for things like eps
}
$type = strtr($type, "jpeg" => "jpg", "tiff" => "tif", "ps" => "eps", "ept" => "eps");