summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2007-05-22 12:22:10 +0000
committerChristian Schneider2007-05-22 12:22:10 +0000
commite21ff4047b8c1e19acba0cf1a2531f3716038064 (patch)
tree6b8f72956e728e0eea3fb38deb68f84209ecc097 /it.class
parente63f96ffd59a0e64408fe26cf9006cd1dbb990f4 (diff)
downloaditools-e21ff4047b8c1e19acba0cf1a2531f3716038064.tar.gz
itools-e21ff4047b8c1e19acba0cf1a2531f3716038064.tar.bz2
itools-e21ff4047b8c1e19acba0cf1a2531f3716038064.zip
Make old syntax again
Diffstat (limited to 'it.class')
-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;
}