summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class4
1 files 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;
}