diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-23 15:25:48 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-23 15:25:48 -0500 |
commit | 4bfbb194ec1f9fc2647d1cb4e946fb95492076d6 (patch) | |
tree | 2e818635b8ae236cbefe0ccf55e29b23f369d6b7 /lib | |
parent | 9b814dd2124a8c71dec3a8d510d288f040b03b9e (diff) | |
download | elgg-4bfbb194ec1f9fc2647d1cb4e946fb95492076d6.tar.gz elgg-4bfbb194ec1f9fc2647d1cb4e946fb95492076d6.tar.bz2 |
settings are good enough for a preview release now
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tidypics.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php index 7eedb246d..0a4586c29 100644 --- a/lib/tidypics.php +++ b/lib/tidypics.php @@ -91,6 +91,23 @@ function tidypics_prepare_form_vars($entity = null) { return $values; } +function tidypics_get_image_libraries() { + $options = array(); + if (extension_loaded('gd')) { + $options['GD'] = 'GD'; + } + + if (extension_loaded('imagick')) { + $options['ImageMagickPHP'] = 'imagick PHP extension'; + } + + $disablefunc = explode(',', ini_get('disable_functions')); + if (is_callable('exec') && !in_array('exec', $disablefunc)) { + $options['ImageMagick'] = 'ImageMagick executable'; + } + + return $options; +} /********************************************************************* * the functions below replace broken core functions or add functions |