diff options
author | Christian Schneider | 2007-05-22 12:22:10 +0000 |
---|---|---|
committer | Christian Schneider | 2007-05-22 12:22:10 +0000 |
commit | e21ff4047b8c1e19acba0cf1a2531f3716038064 (patch) | |
tree | 6b8f72956e728e0eea3fb38deb68f84209ecc097 | |
parent | e63f96ffd59a0e64408fe26cf9006cd1dbb990f4 (diff) | |
download | itools-e21ff4047b8c1e19acba0cf1a2531f3716038064.tar.gz itools-e21ff4047b8c1e19acba0cf1a2531f3716038064.tar.bz2 itools-e21ff4047b8c1e19acba0cf1a2531f3716038064.zip |
Make old syntax again
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |