From e21ff4047b8c1e19acba0cf1a2531f3716038064 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 22 May 2007 12:22:10 +0000 Subject: Make old syntax again --- it.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it.class b/it.class index 761471c..0e1844c 100644 --- a/it.class +++ b/it.class @@ -318,11 +318,11 @@ function exec(/* ... */) function imageconvert($p) { $result = false; - $type = it::replace("jpeg" => "jpg", "tiff" => "tif", image_type_to_extension(exif_imagetype($p['in']), false)); + $type = it::replace(array("jpeg" => "jpg", "tiff" => "tif"), image_type_to_extension(exif_imagetype($p['in']), false)); $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', '-thumbnail' => $p['size'], $p['in'], $p['type'] . ":" . $p['out']) === ""; + $result = it::exec('convert 2>&1 -flatten', array('-thumbnail' => $p['size']), $p['in'], $p['type'] . ":" . $p['out']) === ""; return $result; } -- cgit v1.2.3